summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/libstatgrab/PKGBUILD
blob: ae38a47e62265d7976c7cba45a77fac97cb6630d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Hugo Ideler <hugoideler@dse.nl>

pkgname=libstatgrab
pkgver=0.14
pkgrel=1
pkgdesc="A library that provides cross platform access to statistics about the system on which it's run"
url="http://www.i-scream.org/libstatgrab"
license=""
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
arch=('i686')
install=
source=(ftp://ftp.uk.i-scream.org/pub/i-scream/libstatgrab/$pkgname-$pkgver.tar.gz)

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1

#What you get when people make broken Makefiles...
sed -i -e 's:chown root ${exec_prefix}/bin/statgrab::' ./src/statgrab/Makefile 
sed -i -e 's:chmod u+s ${exec_prefix}/bin/statgrab::' ./src/statgrab/Makefile 
sed -i -e 's:chown root ${exec_prefix}/bin/saidar::' ./src/saidar/Makefile 
sed -i -e 's:chmod u+s ${exec_prefix}/bin/saidar::' ./src/saidar/Makefile 
  make DESTDIR=$startdir/pkg install
#MAKE="make DESTDIR=$startdir/pkg prefix=$startdir/pkg"
}