# $Id: PKGBUILD 10319 2008-08-26 04:36:19Z allan $ # Maintainer: judd <jvinet@zeroflux.org> pkgname=util-linux-ng pkgver=2.14 pkgrel=14 pkgdesc="Miscellaneous system utilities for Linux" arch=('i686' 'x86_64') groups=('base') depends=('bash' 'ncurses>=5.6-7' 'zlib' 'e2fsprogs') replaces=('linux32' 'util-linux') conflicts=('linux32' 'util-linux') provides=('linux32' 'util-linux') license=('GPL') source=(ftp://ftp.kernel.org/pub/linux/utils/${pkgname}/v2.14/${pkgname}-${pkgver}.tar.bz2 http://loop-aes.sourceforge.net/updates/util-linux-ng-2.14-20080624.diff.bz2) md5sums=('23f227da49df36f33fe47e917e332cd8' 'e76c888bd140d7bd5bbd5f5b098bc1e7') build() { cd ${startdir}/src/${pkgname}-${pkgver} #./autogen.sh # cryptoloop support patch -Np1 -i ${startdir}/src/util-linux-ng-2.14-20080624.diff || return 1 sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i hwclock/hwclock.c mkdir -p ${startdir}/pkg/var/lib/hwclock ./configure --enable-arch --enable-write --enable-raw --disable-wall --enable-rdev make HAVE_SLN=yes ADD_RAW=yes || return 1 make HAVE_SLN=yes ADD_RAW=yes DESTDIR=${startdir}/pkg install rm -f ${startdir}/pkg/bin/kill rm -f ${startdir}/pkg/usr/share/man/man1/kill.1 rm -f ${startdir}/pkg/usr/share/man/man5/nfs.5 rm -f ${pkgdir}/usr/share/info/dir }