summaryrefslogtreecommitdiff
path: root/testing/util-linux/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-01-07 23:14:43 +0000
committerroot <root@rshg054.dnsready.net>2012-01-07 23:14:43 +0000
commit6aeb515f4afd10afb53b21df18d03b0d5f3a200f (patch)
tree531fd1ff51f0ee474a0bbaeb5cb1de852f6096dd /testing/util-linux/PKGBUILD
parentd7931e8fa49a4698ac8dbb1a155ca6b48f031828 (diff)
Sat Jan 7 23:14:43 UTC 2012
Diffstat (limited to 'testing/util-linux/PKGBUILD')
-rw-r--r--testing/util-linux/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/util-linux/PKGBUILD b/testing/util-linux/PKGBUILD
new file mode 100644
index 000000000..f014cd857
--- /dev/null
+++ b/testing/util-linux/PKGBUILD
@@ -0,0 +1,50 @@
+# $Id: PKGBUILD 146238 2012-01-06 20:01:52Z tomegun $
+# Maintainer: Tom Gundersen <teg@jklm.no>
+# Contributor: judd <jvinet@zeroflux.org>
+
+pkgname=util-linux
+pkgver=2.20.1
+pkgrel=2
+pkgdesc="Miscellaneous system utilities for Linux"
+url="http://userweb.kernel.org/~kzak/util-linux-ng/"
+arch=('i686' 'x86_64')
+groups=('base')
+depends=('filesystem')
+replaces=('linux32' 'util-linux-ng')
+conflicts=('linux32' 'util-linux-ng' 'e2fsprogs<1.41.8-2')
+provides=('linux32' "util-linux-ng=${pkgver}")
+license=('GPL2')
+options=('!libtool')
+#source=(ftp://ftp.kernel.org/pub/linux/utils/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.bz2)
+source=(ftp://ftp.infradead.org/pub/${pkgname}/v2.20/${pkgname}-${pkgver}.tar.bz2
+ 0001-findmnt-support-alternative-location-of-fstab.patch)
+optdepends=('perl: for chkdupexe support')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # hardware clock
+ sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i include/pathnames.h
+
+ # backport patch needed for usr support in initramfs
+ patch -p1 -i ../0001-findmnt-support-alternative-location-of-fstab.patch
+
+ ./configure --enable-arch\
+ --enable-write\
+ --enable-raw\
+ --disable-wall\
+ --enable-partx\
+ --enable-libmount-mount
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ install -dm755 "${pkgdir}/var/lib/hwclock"
+
+ make DESTDIR="${pkgdir}" install
+}
+md5sums=('079b37517fd4e002a2e6e992e8b4e361'
+ '823e2d87885b81f245b8c368e28f8cab')