mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-11 22:14:44 +08:00
113 lines
3.4 KiB
Bash
113 lines
3.4 KiB
Bash
pkgname=lib32-systemd
|
|
_pkgbasename=systemd
|
|
pkgver=218
|
|
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-libidn' 'lib32-libcap'
|
|
'lib32-acl' 'intltool' 'gperf')
|
|
source=("http://www.freedesktop.org/software/$_pkgbasename/$_pkgbasename-$pkgver.tar.xz"
|
|
# "git://pkgs.fedoraproject.org/systemd.git#commit=${_fedora_patch}"
|
|
)
|
|
md5sums=('4e2c511b0a7932d7fc9d79822273aac6')
|
|
|
|
prepare() {
|
|
cd "$_pkgbasename-$pkgver"
|
|
|
|
# git init
|
|
# git config user.email "chakra-devel@googlegroups.com"
|
|
# git config user.name "Chakra Packager"
|
|
# git add .
|
|
# git commit -a -q -m "${pkgver}} baseline."
|
|
#
|
|
# git am \
|
|
# --exclude .gitignore \
|
|
# --exclude docs/.gitignore \
|
|
# --exclude docs/gudev/.gitignore \
|
|
# --exclude docs/libudev/.gitignore \
|
|
# --exclude docs/sysvinit/.gitignore \
|
|
# --exclude docs/var-log/.gitignore \
|
|
# --exclude hwdb/.gitignore \
|
|
# --exclude m4/.gitignore \
|
|
# --exclude man/.gitignore \
|
|
# --exclude po/.gitignore \
|
|
# --exclude rules/.gitignore \
|
|
# --exclude src/.gitignore \
|
|
# --exclude src/analyze/.gitignore \
|
|
# --exclude src/core/.gitignore \
|
|
# --exclude src/gudev/.gitignore \
|
|
# --exclude src/hostname/.gitignore \
|
|
# --exclude src/journal/.gitignore \
|
|
# --exclude src/libsystemd-daemon/.gitignore \
|
|
# --exclude src/libsystemd-id128/.gitignore \
|
|
# --exclude src/libudev/.gitignore \
|
|
# --exclude src/locale/.gitignore \
|
|
# --exclude src/login/.gitignore \
|
|
# --exclude src/python-systemd/.gitignore \
|
|
# --exclude src/python-systemd/docs/.gitignore \
|
|
# --exclude src/timedate/.gitignore \
|
|
# --exclude src/udev/.gitignore \
|
|
# --exclude src/udev/scsi_id/.gitignore \
|
|
# --exclude sysctl.d/.gitignore \
|
|
# --exclude test/.gitignore \
|
|
# --exclude units/.gitignore \
|
|
# --exclude units/user/.gitignore \
|
|
# --exclude src/libsystemd/sd-bus/PORTING-DBUS1 \
|
|
# --exclude CODING_STYLE \
|
|
# --exclude src/readahead/Makefile \
|
|
# --exclude src/libsystemd-terminal/unifont-def.h \
|
|
# ../systemd/00*-*.patch
|
|
#
|
|
# autoreconf -i
|
|
}
|
|
|
|
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 \
|
|
--disable-audit \
|
|
--disable-tests \
|
|
--disable-ima \
|
|
--disable-kdbus \
|
|
--disable-seccomp \
|
|
--disable-pam \
|
|
--disable-kmod \
|
|
--disable-networkd \
|
|
--disable-blkid \
|
|
--without-python \
|
|
--disable-libcryptsetup \
|
|
--disable-microhttpd \
|
|
--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}
|
|
|
|
install -m755 -d "${pkgdir}/usr/share/licenses"
|
|
ln -s systemd "$pkgdir/usr/share/licenses/lib32-systemd"
|
|
}
|