[arch-commits] Commit in python-constantly/repos (staging-any staging-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 15:30:12 UTC 2019
Date: Friday, October 25, 2019 @ 15:30:12
Author: felixonmars
Revision: 365624
archrelease: copy trunk to staging-any
Added:
python-constantly/repos/staging-any/
python-constantly/repos/staging-any/PKGBUILD
(from rev 365623, python-constantly/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-constantly/repos/staging-any/PKGBUILD (from rev 365623, python-constantly/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2019-10-25 15:30:12 UTC (rev 365624)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-constantly
+pkgname=('python-constantly' 'python2-constantly')
+pkgver=15.1.0
+pkgrel=4
+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