[arch-commits] Commit in python2-path.py/repos (community-any community-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Oct 27 03:57:14 UTC 2019
Date: Sunday, October 27, 2019 @ 03:57:13
Author: felixonmars
Revision: 520699
archrelease: copy trunk to community-any
Added:
python2-path.py/repos/community-any/
python2-path.py/repos/community-any/PKGBUILD
(from rev 520698, python2-path.py/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python2-path.py/repos/community-any/PKGBUILD (from rev 520698, python2-path.py/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2019-10-27 03:57:13 UTC (rev 520699)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python2-path.py
+pkgver=11.5.1
+pkgrel=2
+pkgdesc='A module wrapper for os.path'
+arch=('any')
+license=('MIT')
+url='https://github.com/jaraco/path.py'
+depends=('python2-importlib-metadata' 'python2-backports.os')
+makedepends=('python2-setuptools-scm')
+checkdepends=('python2-pytest-runner' 'python2-pytest-flake8')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jaraco/path.py/archive/$pkgver.tar.gz")
+sha512sums=('ed2b6adb5f6e3184858318d3a94afc744c0f635bc04f2c00d01780bae9c86c3907e0cd64d23242f6df8cab7e0703698c6d39ed4d037f71bf5e3565dfc47f27d6')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+ cd path.py-$pkgver
+ python2 setup.py build
+}
+
+check() {
+ cd path.py-$pkgver
+ python2 setup.py pytest
+}
+
+package() {
+ cd path.py-$pkgver
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list