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

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 30 18:46:32 UTC 2018


    Date: Saturday, June 30, 2018 @ 18:46:32
  Author: foutrelis
Revision: 327894

archrelease: copy trunk to staging-x86_64

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

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

Copied: python-systemd/repos/staging-x86_64/PKGBUILD (from rev 327893, python-systemd/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2018-06-30 18:46:32 UTC (rev 327894)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgbase=python-systemd
+pkgname=(python-systemd python2-systemd)
+pkgver=234
+pkgrel=2
+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