[arch-commits] Commit in lib32-systemd/repos (2 files)

Christian Hesse eworm at archlinux.org
Tue Sep 3 09:58:02 UTC 2019


    Date: Tuesday, September 3, 2019 @ 09:58:01
  Author: eworm
Revision: 507362

archrelease: copy trunk to multilib-testing-x86_64

Added:
  lib32-systemd/repos/multilib-testing-x86_64/
  lib32-systemd/repos/multilib-testing-x86_64/PKGBUILD
    (from rev 507361, lib32-systemd/trunk/PKGBUILD)

----------+
 PKGBUILD |  133 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 133 insertions(+)

Copied: lib32-systemd/repos/multilib-testing-x86_64/PKGBUILD (from rev 507361, lib32-systemd/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-testing-x86_64/PKGBUILD	2019-09-03 09:58:01 UTC (rev 507362)
@@ -0,0 +1,133 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+# Maintainer: Dave Reisner <dreisner at archlinux.org>
+# Maintainer: Tom Gundersen <teg at jklm.no>
+
+pkgname=lib32-systemd
+_pkgbasename=systemd
+# Can be from either systemd or systemd-stable
+_commit='efb536d0cbe2e58f80e501d19999928c75e08f6a'
+pkgver=243.0
+pkgrel=1
+pkgdesc='system and service manager (32-bit)'
+arch=('x86_64')
+url='https://www.github.com/systemd/systemd'
+license=('GPL2' 'LGPL2.1')
+depends=('lib32-gcc-libs' 'lib32-libcap' 'lib32-libgcrypt' 'lib32-xz' '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-libidn2' 'lib32-pcre2'
+             'libxslt' 'meson')
+options=('strip')
+validpgpkeys=('63CDA1E5D3FC22B998D20DD6327F26951A015CC4'  # Lennart Poettering <lennart at poettering.net>
+              '5C251B5FC54EB2F80F407AAAC54CA336CFEB557E') # Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
+source=(# fragment is latest tag for source verification, final merge in prepare()
+        "git+https://github.com/systemd/systemd-stable#tag=v${pkgver%.*}?signed"
+        "git+https://github.com/systemd/systemd#tag=v${pkgver%.*}?signed")
+sha512sums=('SKIP'
+            'SKIP')
+
+_backports=(
+)
+
+_reverts=(
+)
+
+prepare() {
+  cd "$_pkgbasename-stable"
+
+  # add upstream repository for cherry-picking
+  git remote add -f upstream ../systemd
+  # merge the latest stable commit (fast-foward only to make sure
+  # the verified tag is in)
+  git merge --ff-only "${_commit}"
+
+  local _c
+  for _c in "${_backports[@]}"; do
+    git cherry-pick -n "${_c}"
+  done
+  for _c in "${_reverts[@]}"; do
+    git revert -n "${_c}"
+  done
+}
+
+pkgver() {
+  local version count
+
+  cd "$_pkgbasename-stable"
+
+  local _version _count
+  _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 _nameservers=(
+    # We use these public name services, ordered by their
+    # privacy policy (hopefully):
+    #  * Cloudflare (https://1.1.1.1/)
+    #  * Quad9 without filtering (https://www.quad9.net/)
+    #  * Google (https://developers.google.com/speed/public-dns/)
+    1.1.1.1
+    9.9.9.10
+    8.8.8.8
+    2606:4700:4700::1111
+    2620:fe::10
+    2001:4860:4860::8888
+  )
+ 
+  local _meson_options=(
+    --libexecdir	/usr/lib32
+    --libdir		/usr/lib32
+
+    -Dversion-tag="${pkgver}-${pkgrel}-arch"
+
+    -Daudit=false
+    -Dgnu-efi=false
+    -Dima=false
+    -Dlibidn2=true
+    -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-hierarchy=hybrid
+    -Ddefault-locale=C
+    -Ddefault-kill-user-processes=false
+    -Dfallback-hostname='archlinux'
+    -Dntp-servers="${_timeservers[*]}"
+    -Ddns-servers="${_nameservers[*]}"
+    -Drpmmacrosdir=no
+    -Dsysvinit-path=
+    -Dsysvrcnd-path=
+  )
+
+  arch-meson "$_pkgbasename-stable" build "${_meson_options[@]}"
+
+  ninja -C build
+}
+
+check() {
+  meson test -C build
+}
+
+package() {
+  DESTDIR="$pkgdir" ninja -C build install
+
+  rm -rf "${pkgdir}"/{etc,var}
+  rm -rf "${pkgdir}"/usr/{bin,include,lib,share}
+}


More information about the arch-commits mailing list