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

Felix Yan felixonmars at archlinux.org
Sat Dec 24 10:36:12 UTC 2016


    Date: Saturday, December 24, 2016 @ 10:36:12
  Author: felixonmars
Revision: 201336

archrelease: copy trunk to community-staging-any

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

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

Copied: python-apipkg/repos/community-staging-any/PKGBUILD (from rev 201335, python-apipkg/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 10:36:12 UTC (rev 201336)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-apipkg
+pkgname=('python-apipkg' 'python2-apipkg')
+pkgver=1.4
+pkgrel=3
+pkgdesc="Namespace control and lazy-import mechanism"
+arch=('any')
+license=('MIT')
+url=" http://bitbucket.org/hpk42/apipkg"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("http://pypi.python.org/packages/source/a/apipkg/apipkg-$pkgver.tar.gz")
+sha512sums=('118f806706944513f50d3cdef596b32f8ce585cfaf94d2531a6d260f90a0e2147177161aaa6f5d6823150e6182d0f73be3dc01259b8a2f8d710733a22ea54789')
+
+prepare() {
+  cp -a apipkg-${pkgver}{,-py2}
+}
+
+build() {
+  cd "$srcdir/apipkg-${pkgver}"
+  python setup.py build
+
+  cd "$srcdir/apipkg-${pkgver}-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/apipkg-${pkgver}"
+  py.test
+
+  cd "$srcdir/apipkg-${pkgver}-py2"
+  py.test2
+}
+
+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}-py2
+  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