diff options
| author | Yurii Kolesnykov <root@yurikoles.com> | 2018-09-23 17:05:02 +0300 |
|---|---|---|
| committer | Yurii Kolesnykov <root@yurikoles.com> | 2018-09-23 17:05:02 +0300 |
| commit | 9f146f6da57d3fc34cd865ba817764a9158df3e9 (patch) | |
| tree | 47d0eeac78e8c050e01ffd921624a25c04b89a0b | |
| download | lib32-systemd-git-9f146f6da57d3fc34cd865ba817764a9158df3e9.tar.gz lib32-systemd-git-9f146f6da57d3fc34cd865ba817764a9158df3e9.tar.bz2 | |
init, 239.886
| -rw-r--r-- | .SRCINFO | 37 | ||||
| -rw-r--r-- | .gitignore | 5 | ||||
| -rw-r--r-- | PKGBUILD | 91 |
3 files changed, 133 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..242af89 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,37 @@ +pkgbase = lib32-systemd-git + pkgdesc = system and service manager (32-bit, git version) + pkgver = 239.886 + pkgrel = 1 + url = https://www.github.com/systemd/systemd + arch = x86_64 + license = GPL2 + license = LGPL2.1 + makedepends = gcc-multilib + makedepends = git + makedepends = gperf + makedepends = intltool + makedepends = lib32-acl + makedepends = lib32-bzip2 + makedepends = lib32-curl + makedepends = lib32-dbus + makedepends = lib32-gcc-libs + makedepends = lib32-glib2 + makedepends = lib32-gnutls + makedepends = lib32-libelf + makedepends = lib32-libidn + makedepends = lib32-pcre2 + makedepends = libxslt + makedepends = meson + depends = lib32-libgcrypt + depends = lib32-xz + provides = lib32-systemd + conflicts = lib32-systemd + replaces = lib32-systemd + options = strip + options = !distcc + options = !ccache + source = git+https://github.com/systemd/systemd + sha512sums = SKIP + +pkgname = lib32-systemd-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..80ab5fb --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +systemd +src +pkg +*.pkg.* +*.log diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..db531c2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,91 @@ +# Maintainer: Yurii Kolesnykov <yurikoles@gmai.com> +# Credit: Christian Hesse <mail@eworm.de> +# Credit: Dave Reisner <dreisner@archlinux.org> +# Credit: Tom Gundersen <teg@jklm.no> + +pkgname=lib32-systemd-git +_pkgbasename=systemd +pkgver=239.886 +pkgrel=1 +pkgdesc='system and service manager (32-bit, git version)' +arch=('x86_64') +url='https://www.github.com/systemd/systemd' +license=('GPL2' 'LGPL2.1') +depends=('lib32-libgcrypt' 'lib32-xz') +provides=('lib32-systemd') +replaces=('lib32-systemd') +conflicts=('lib32-systemd') +makedepends=('gcc-multilib' 'git' 'gperf' 'intltool' 'lib32-acl' 'lib32-bzip2' + 'lib32-curl' 'lib32-dbus' 'lib32-gcc-libs' 'lib32-glib2' + 'lib32-gnutls' 'lib32-libelf' 'lib32-libidn' 'lib32-pcre2' + 'libxslt' 'meson') +options=('strip' '!distcc' '!ccache') +source=('git+https://github.com/systemd/systemd') +sha512sums=('SKIP') + +pkgver() { + local version count + + cd "$_pkgbasename" + + version="$(git describe --abbrev=0 --tags)" + count="$(git rev-list --count ${version}..)" + printf '%s.%s' "${version#v}" "${count}" +} + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + local timeservers=({0..3}.arch.pool.ntp.org) + + local meson_options=( + --libexecdir /usr/lib32 + --libdir /usr/lib32 + + -Daudit=false + -Dgnuefi=false + -Dima=false + -Dlz4=false + -Dblkid=false + -Dkmod=false + -Dlibcryptsetup=false + -Dlibiptc=false + -Dmanpages=false + -Dnetworkd=false + -Dpam=false + -Dpython=false + -Dseccomp=false + -Dman=false + -Dhtml=false + + -Ddbuspolicydir=/usr/share/dbus-1/system.d + -Ddefault-dnssec=no + # TODO(dreisner): consider changing this to unified + -Ddefault-hierarchy=hybrid + -Ddefault-kill-user-processes=false + -Dfallback-hostname='archlinux' + -Dntp-servers="${timeservers[*]}" + -Drpmmacrosdir=no + -Dsysvinit-path= + -Dsysvrcnd-path= + ) + + arch-meson "$_pkgbasename" build "${meson_options[@]}" + + ninja -C build +} + +check() { + cd build + meson test +} + +package() { + DESTDIR="$pkgdir" ninja -C build install + + rm -rf "${pkgdir}"/{etc,var} + rm -rf "${pkgdir}"/usr/{bin,include,lib,share} +} + |
