From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- multilib/lib32-util-linux/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 multilib/lib32-util-linux/PKGBUILD (limited to 'multilib/lib32-util-linux/PKGBUILD') diff --git a/multilib/lib32-util-linux/PKGBUILD b/multilib/lib32-util-linux/PKGBUILD new file mode 100644 index 000000000..026d52a1b --- /dev/null +++ b/multilib/lib32-util-linux/PKGBUILD @@ -0,0 +1,52 @@ +# $Id: PKGBUILD 41742 2011-03-08 19:17:58Z dreisner $ +# Maintainer: judd + +_pkgbasename=util-linux +pkgname=lib32-$_pkgbasename +pkgver=2.19 +pkgrel=1 +pkgdesc="Miscellaneous system utilities for Linux (32-bit)" +url="http://userweb.kernel.org/~kzak/util-linux-ng/" +arch=('x86_64') +depends=('lib32-glibc' $_pkgbasename) +makedepends=('gcc-multilib') +provides=('lib32-util-linux-ng') +conflicts=('lib32-util-linux-ng') +replaces=('lib32-util-linux-ng') +license=('GPL2') +options=('!libtool' '!emptydirs') +source=(ftp://ftp.kernel.org/pub/linux/utils/${_pkgbasename}/v2.19/${_pkgbasename}-${pkgver}.tar.bz2) +md5sums=('590ca71aad0b254e2631d84401f28255') + +shopt -s extglob + +build() { + cd "${srcdir}/${_pkgbasename}-${pkgver}" + + # hardware clock + sed -e 's%etc/adjtime%var/lib/hwclock/adjtime%' -i hwclock/hwclock.c + mkdir -p "${pkgdir}/var/lib/hwclock" + + export CC="gcc -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + ./autogen.sh + ./configure --without-ncurses --libdir=/usr/lib32 + + cd shlibs + for lib in *; do + make -C $lib + done +} + +package() { + cd "${srcdir}/${_pkgbasename}-${pkgver}" + + make DESTDIR="$pkgdir" install + + # remove unnecessary files + cd "$pkgdir" + rm -rf !(usr) + cd usr + rm -rf !(lib32) +} -- cgit v1.2.3-54-g00ecf