CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
eb3e07840ed59413b30d69c3f2fc9df5b1ac2308
[crossrootfs.git] / procps / Pkgfile
1 # Description: The /proc file system utilities
2 # URL: http://procps.sourceforge.net/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on: ncurses
6
7 name=procps
8 version=3.3.3
9 release=1
10 source=(http://ftp.de.debian.org/debian/pool/main/p/$name/${name}_$version.orig.tar.xz \
11 sysctl.conf)
12
13 build() {
14 cd $name-ng-$version
15
16 cat > config.cache << EOF
17 ac_cv_func_malloc_0_nonnull=yes
18 ac_cv_func_realloc_0_nonnull=yes
19 EOF
20
21 ./configure --build=$CHOST \
22 --host=$CTARGET \
23 --prefix=/usr \
24 --exec-prefix=/ \
25 --libdir=/usr/lib \
26 --sysconfdir=/etc \
27 --mandir=/usr/man \
28 --disable-kill \
29 --cache-file=config.cache
30
31 make
32 make DESTDIR=$PKG install
33
34 install -d $PKG/{lib,etc}
35 mv $PKG/usr/lib/libprocps.so.* $PKG/lib
36 ln -sf ../../lib/$(readlink $PKG/lib/libprocps.so.0) $PKG/usr/lib/libprocps.so
37 install -m 0644 $SRC/sysctl.conf $PKG/etc/sysctl.conf
38
39 rm -r $PKG/usr/share
40 }