[arch-commits] Commit in python-resolvelib/repos (staging-any staging-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 15:43:21 UTC 2020
Date: Monday, November 9, 2020 @ 15:43:21
Author: felixonmars
Revision: 399753
archrelease: copy trunk to staging-any
Added:
python-resolvelib/repos/staging-any/
python-resolvelib/repos/staging-any/PKGBUILD
(from rev 399752, python-resolvelib/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: python-resolvelib/repos/staging-any/PKGBUILD (from rev 399752, python-resolvelib/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2020-11-09 15:43:21 UTC (rev 399753)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-resolvelib
+pkgname=(python-resolvelib python2-resolvelib)
+pkgver=0.5.1
+pkgrel=2
+pkgdesc="Resolve abstract dependencies into concrete ones"
+url="https://github.com/sarugaku/resolvelib"
+license=('ISC')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-commentjson' 'python-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/sarugaku/resolvelib/archive/$pkgver.tar.gz")
+sha512sums=('5fee837933ab0e8279aa986ddaa78c1d7c84d89dabaabceef201cc12c7a30f0bdce73eeb9c3863f7057cda6b813e7405cdb3b18f136d35e9a624b71ad5092e62')
+
+build() {
+ cd resolvelib-$pkgver
+ python setup.py build
+ python2 setup.py build
+}
+
+check() {
+ cd resolvelib-$pkgver
+ python setup.py pytest
+}
+
+package_python-resolvelib() {
+ depends=('python')
+
+ cd resolvelib-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+package_python2-resolvelib() {
+ depends=('python2')
+
+ cd resolvelib-$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