mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-10 10:54:38 +08:00
52 lines
1.2 KiB
Bash
52 lines
1.2 KiB
Bash
# $Id$
|
|
# Maintainer: judd <jvinet@zeroflux.org>
|
|
|
|
_pkgbasename=util-linux
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=2.20.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.20/${_pkgbasename}-${pkgver}.tar.bz2)
|
|
md5sums=('079b37517fd4e002a2e6e992e8b4e361')
|
|
|
|
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
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# remove unnecessary files
|
|
cd "$pkgdir"
|
|
rm -rf !(usr)
|
|
cd usr
|
|
rm -rf !(lib32)
|
|
}
|