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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Dec 25 17:47:45 UTC 2016


    Date: Sunday, December 25, 2016 @ 17:47:45
  Author: bpiotrowski
Revision: 202147

archrelease: copy trunk to community-staging-any

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

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

Copied: python-characteristic/repos/community-staging-any/PKGBUILD (from rev 202146, python-characteristic/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 17:47:45 UTC (rev 202147)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-characteristic
+pkgname=('python-characteristic' 'python2-characteristic')
+pkgver=14.3.0
+pkgrel=5
+pkgdesc="Python attributes without boilerplate."
+arch=('any')
+license=('MIT')
+url="http://pypi.python.org/pypi/characteristic"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("http://pypi.python.org/packages/source/c/characteristic/characteristic-$pkgver.tar.gz")
+md5sums=('b249368dd021fde1c06b4802867c0913')
+
+prepare() {
+  cp -a characteristic-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/characteristic-$pkgver
+  python setup.py build
+ 
+  cd "$srcdir"/characteristic-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/characteristic-$pkgver
+  python setup.py ptr
+
+  cd "$srcdir"/characteristic-$pkgver-py2
+  python2 setup.py ptr
+}
+ 
+package_python-characteristic() {
+  depends=('python')
+ 
+  cd characteristic-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+ 
+package_python2-characteristic() {
+  depends=('python2')
+ 
+  cd characteristic-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list