mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-09 12:38:10 +08:00
57 lines
1.3 KiB
Bash
57 lines
1.3 KiB
Bash
# $Id$
|
|
# Maintainer: judd <jvinet@zeroflux.org>
|
|
|
|
_pkgbasename=util-linux
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=2.19.1
|
|
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
|
|
mount-segfault-2.19.1.patch)
|
|
md5sums=('3eab06f05163dfa65479c44e5231932c'
|
|
'3247b52f0e4b8044f23f2f7218e2fdea')
|
|
|
|
shopt -s extglob
|
|
|
|
build() {
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
|
# fix https://bugs.archlinux.org/task/24261
|
|
patch -Np1 -i ../mount-segfault-2.19.1.patch
|
|
|
|
# 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)
|
|
}
|