[arch-commits] Commit in python-constantly/repos (staging-any staging-any/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 15:51:07 UTC 2020


    Date: Monday, November 9, 2020 @ 15:51:07
  Author: foutrelis
Revision: 399765

archrelease: copy trunk to staging-any

Added:
  python-constantly/repos/staging-any/
  python-constantly/repos/staging-any/PKGBUILD
    (from rev 399764, python-constantly/trunk/PKGBUILD)

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

Copied: python-constantly/repos/staging-any/PKGBUILD (from rev 399764, python-constantly/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2020-11-09 15:51:07 UTC (rev 399765)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-constantly
+pkgname=('python-constantly' 'python2-constantly')
+pkgver=15.1.0
+pkgrel=7
+pkgdesc='Symbolic constants in Python'
+arch=('any')
+license=('MIT')
+url='https://github.com/twisted/constantly'
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-twisted' 'python2-twisted')
+source=("git+https://github.com/twisted/constantly.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a constantly{,-py2}
+}
+
+build() {
+  cd "$srcdir"/constantly
+  python setup.py build
+
+  cd "$srcdir"/constantly-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/constantly
+  python setup.py ptr
+
+  cd "$srcdir"/constantly-py2
+  python2 setup.py ptr
+}
+
+package_python-constantly() {
+  depends=('python')
+
+  cd constantly
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-constantly() {
+  depends=('python2')
+
+  cd constantly-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list