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