2011-02-13 05:26:46 +08:00
|
|
|
#
|
|
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
|
2011-06-17 18:58:32 +08:00
|
|
|
pkgname=util-linux
|
|
|
|
pkgver=2.19.1
|
2011-02-13 05:26:46 +08:00
|
|
|
pkgrel=1
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgdesc="Miscellaneous system utilities for Linux"
|
|
|
|
url="http://userweb.kernel.org/~kzak/util-linux-ng/"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
groups=('base')
|
2010-05-16 23:08:55 +08:00
|
|
|
depends=('bash' 'ncurses>=5.7' 'zlib' 'filesystem')
|
2011-06-17 18:58:32 +08:00
|
|
|
replaces=('linux32' 'util-linux-ng')
|
|
|
|
conflicts=('linux32' 'util-linux-ng' 'e2fsprogs<1.41.8-2')
|
|
|
|
provides=('linux32' "util-linux-ng=${pkgver}")
|
2010-03-13 23:25:19 +08:00
|
|
|
license=('GPL2')
|
|
|
|
options=('!libtool')
|
2011-06-17 18:58:32 +08:00
|
|
|
source=(ftp://ftp.kernel.org/pub/linux/utils/${pkgname}/v2.19/${pkgname}-${pkgver}.tar.bz2
|
|
|
|
mount-segfault-2.19.1.patch)
|
2010-03-13 23:25:19 +08:00
|
|
|
optdepends=('perl: for chkdupexe support')
|
2011-06-17 18:58:32 +08:00
|
|
|
md5sums=('3eab06f05163dfa65479c44e5231932c'
|
|
|
|
'3247b52f0e4b8044f23f2f7218e2fdea')
|
2010-03-13 23:25:19 +08:00
|
|
|
|
|
|
|
build() {
|
2011-06-17 18:58:32 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
# fix https://bugs.archlinux.org/task/24261
|
|
|
|
patch -Np1 -i ../mount-segfault-2.19.1.patch
|
2010-03-13 23:25:19 +08:00
|
|
|
# hardware clock
|
2011-02-13 05:26:46 +08:00
|
|
|
sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i hwclock/hwclock.c
|
2011-06-17 18:58:32 +08:00
|
|
|
./configure --enable-arch --enable-write --enable-raw --disable-wall --enable-partx
|
|
|
|
make
|
2011-02-13 05:26:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2011-06-17 18:58:32 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
install -dm755 "${pkgdir}/var/lib/hwclock"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2010-03-13 23:25:19 +08:00
|
|
|
}
|
|
|
|
|