mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
850fefed49
This has been scripted, some might have been missed some PKGBUILDS might be broken, so please chock when building.
50 lines
1.2 KiB
Bash
50 lines
1.2 KiB
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
_pkgbasename=util-linux-ng
|
|
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=$pkgver)
|
|
makedepends=('gcc-multilib')
|
|
license=('GPL2')
|
|
options=('!libtool' '!emptydirs')
|
|
source=(ftp://ftp.kernel.org/pub/linux/utils/${_pkgbasename}/v${pkgver}/util-linux-${pkgver}.tar.bz2)
|
|
|
|
md5sums=('590ca71aad0b254e2631d84401f28255')
|
|
|
|
build() {
|
|
cd "${srcdir}/util-linux-${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"
|
|
|
|
autoreconf
|
|
automake
|
|
./configure --without-ncurses --libdir=/usr/lib32
|
|
|
|
# make -C shlibs
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/util-linux-${pkgver}"
|
|
|
|
# make -C shlibs DESTDIR="${pkgdir}" install
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
# remove files
|
|
rm -rf "${pkgdir}"/{sbin,bin}
|
|
rm -rf "${pkgdir}"/usr/{include,share,sbin,bin}
|
|
}
|
|
|