mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-05 03:07:16 +08:00
63 lines
1.7 KiB
Bash
63 lines
1.7 KiB
Bash
pkgname=lib32-systemd
|
|
_pkgbasename=systemd
|
|
pkgver=216
|
|
pkgrel=1
|
|
pkgdesc="system and service manager (32-bit)"
|
|
arch=('x86_64')
|
|
url="http://www.freedesktop.org/wiki/Software/systemd"
|
|
license=('GPL2' 'LGPL2.1' 'MIT')
|
|
depends=('lib32-glib2' 'lib32-libgcrypt' 'lib32-xz' 'lib32-curl' "$_pkgbasename=$pkgver")
|
|
makedepends=('lib32-gcc-libs' 'gcc-multilib' 'lib32-dbus-core' 'lib32-libcap' 'lib32-acl'
|
|
'intltool' 'gperf')
|
|
options=('!libtool')
|
|
source=("http://www.freedesktop.org/software/$_pkgbasename/$_pkgbasename-$pkgver.tar.xz")
|
|
md5sums=('04fda588a04f549da0f397dce3ae6a39')
|
|
|
|
build() {
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
cd "${srcdir}/systemd-${pkgver}"
|
|
|
|
# LTO currently breaks the build because of libtool failures
|
|
CFLAGS+=' -fno-lto'
|
|
|
|
./configure \
|
|
--libexecdir=/usr/lib32 \
|
|
--libdir=/usr/lib32 \
|
|
--localstatedir=/var \
|
|
--sysconfdir=/etc \
|
|
--enable-compat-libs \
|
|
--enable-split-usr \
|
|
--disable-audit \
|
|
--disable-tests \
|
|
--disable-ima \
|
|
--disable-kdbus \
|
|
--disable-seccomp \
|
|
--disable-pam \
|
|
--disable-kmod \
|
|
--disable-networkd \
|
|
--disable-blkid \
|
|
--without-python \
|
|
--disable-libcryptsetup \
|
|
--with-sysvinit-path= \
|
|
--with-sysvrcnd-path= \
|
|
--with-firmware-path="/usr/lib/firmware/updates:/usr/lib/firmware"
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/systemd-${pkgver}"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
rm -rf "${pkgdir}"/{etc,var}
|
|
rm -rf "${pkgdir}"/usr/{bin,include,lib,share}
|
|
rm -rf "${pkgdir}"/usr/lib32/libnss*
|
|
|
|
install -m755 -d "${pkgdir}/usr/share/licenses"
|
|
ln -s systemd "$pkgdir/usr/share/licenses/lib32-systemd"
|
|
}
|