[arch-commits] Commit in python-systemd/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sat May 16 10:25:42 UTC 2020


    Date: Saturday, May 16, 2020 @ 10:25:42
  Author: foutrelis
Revision: 384116

archrelease: copy trunk to staging-x86_64

Added:
  python-systemd/repos/staging-x86_64/
  python-systemd/repos/staging-x86_64/PKGBUILD
    (from rev 384115, python-systemd/trunk/PKGBUILD)

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

Copied: python-systemd/repos/staging-x86_64/PKGBUILD (from rev 384115, python-systemd/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-05-16 10:25:42 UTC (rev 384116)
@@ -0,0 +1,46 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgbase=python-systemd
+pkgname=(python-systemd python2-systemd)
+pkgver=234
+pkgrel=5
+pkgdesc="Python bindings for systemd"
+arch=(x86_64)
+url="https://github.com/systemd/python-systemd"
+license=(LGPL)
+makedepends=(systemd python python2 git)
+_commit=308ae4440c1f6ea1aff9be4cb683c52bd3a1c13a  # tags/v234^0
+source=("$pkgbase::git+${url}#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgbase
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cp -a $pkgbase python2
+  cp -a $pkgbase python3
+}
+
+build() {
+  cd python3
+  make PYTHON=/usr/bin/python3
+
+  cd ../python2
+  make PYTHON=/usr/bin/python2
+}
+
+package_python-systemd() {
+  depends=(python3 libsystemd)
+
+  cd python3
+  python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+
+package_python2-systemd() {
+  depends=(python2 libsystemd)
+
+  cd python2
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}


More information about the arch-commits mailing list