[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Mon Jul 24 17:22:55 UTC 2017


    Date: Monday, July 24, 2017 @ 17:22:54
  Author: felixonmars
Revision: 246253

addpkg: python-path.py 10.3.1-1

Added:
  python-path.py/
  python-path.py/repos/
  python-path.py/trunk/
  python-path.py/trunk/PKGBUILD

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

Added: python-path.py/trunk/PKGBUILD
===================================================================
--- python-path.py/trunk/PKGBUILD	                        (rev 0)
+++ python-path.py/trunk/PKGBUILD	2017-07-24 17:22:54 UTC (rev 246253)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-path.py
+pkgname=('python-path.py' 'python2-path.py')
+pkgver=10.3.1
+pkgrel=1
+pkgdesc='A module wrapper for os.path'
+arch=('any')
+license=('MIT')
+url='https://github.com/jaraco/path.py'
+makedepends=('python-setuptools-scm' 'python2-setuptools-scm')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jaraco/path.py/archive/$pkgver.tar.gz")
+sha512sums=('db2e7411d55d03c348f5ea1dd71c52dfc5e858c402c5752e5ca766f60f67dc8bd0f36a704903bdde5e3b39fde4e95711ce812887f34ad6ffe9ee1385e5f23141')
+
+prepare() {
+  cp -a path.py-$pkgver{,-py2}
+
+  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/path.py-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/path.py-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/path.py-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/path.py-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-path.py() {
+  depends=('python')
+
+  cd path.py-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-path.py() {
+  depends=('python2')
+
+  cd path.py-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:


Property changes on: python-path.py/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list