CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
5ab4c635c1d8e49d37b123226ff878691cb02b95
[crossrootfs.git] / util-linux-ng / Pkgfile
1 # Description: Miscellaneous system utilities
2 # URL: http://userweb.kernel.org/~kzak/util-linux-ng/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
5 # Depends on: e2fsprogs ncurses zlib
6
7 name=util-linux-ng
8 version=2.15.1
9 release=1
10 source=(http://www.kernel.org/pub/linux/utils/$name/v${version%.*}/$name-$version.tar.bz2)
11
12 build() {
13 cd $name-$version
14 ./configure --build=$CHOST \
15 --host=$CTARGET \
16 --prefix=/usr \
17 --mandir=/usr/man \
18 --disable-{nls,elvtune,wall} \
19 --enable-{write,rdev,raw,kill} \
20 --with-fsprobe=builtin
21
22 make
23 make DESTDIR=$PKG install
24
25 mv $PKG/lib/libblkid.{a,la} $PKG/usr/lib
26 ln -s /lib/libblkid.so $PKG/usr/lib/libblkid.so
27
28
29 mkdir -p $PKG/etc
30 touch $PKG/etc/adjtime
31 rm -r $PKG/usr/share
32 rm $PKG/sbin/{mkfs.bfs,mkfs.minix,fsck.minix}
33 rm $PKG/usr/man/man8/{fsck.minix,mkfs.bfs,mkfs.minix}.8
34 }