[arch-commits] Commit in python-apipkg/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Oct 25 15:45:33 UTC 2019


    Date: Friday, October 25, 2019 @ 15:45:32
  Author: felixonmars
Revision: 519188

archrelease: copy trunk to community-staging-any

Added:
  python-apipkg/repos/community-staging-any/
  python-apipkg/repos/community-staging-any/PKGBUILD
    (from rev 519187, python-apipkg/trunk/PKGBUILD)

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

Copied: python-apipkg/repos/community-staging-any/PKGBUILD (from rev 519187, python-apipkg/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 15:45:32 UTC (rev 519188)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-apipkg
+pkgname=('python-apipkg' 'python2-apipkg')
+pkgver=1.5
+pkgrel=2
+pkgdesc="Namespace control and lazy-import mechanism"
+arch=('any')
+license=('MIT')
+url="https://bitbucket.org/hpk42/apipkg"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-$pkgver.tar.gz")
+sha512sums=('828937ca5e203915248fac54db8e7c13f941e006403f2a415c27fa4d1aa114790be3d7b5dd892f528611e5e6dfe75114ee80f4f4589a03c3f789ae6ddfcae0bf')
+
+build() {
+  cd apipkg-$pkgver
+  python setup.py build
+  python2 setup.py build
+}
+
+check() {
+  cd apipkg-$pkgver
+  python setup.py pytest
+  python2 setup.py pytest
+}
+
+package_python-apipkg() {
+  depends=('python')
+
+  cd apipkg-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-apipkg() {
+  depends=('python2')
+
+  cd apipkg-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list