summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorgardar2020-01-14 11:56:34 +0000
committergardar2020-01-14 11:56:34 +0000
commit99d9c888ad24f4ff2eb0c51e75302fd69670e9a5 (patch)
tree691ede1a94037c6b8c4a128d1619cc1f833bfe20 /PKGBUILD
downloadaur-python-git-url-parse.tar.gz
Initial upload python-git-url-parse
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2441a7722ea
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: gardar <aur@gardar.net>
+
+pkgbase="python-git-url-parse"
+_pkgname="git-url-parse"
+pkgname=("python-git-url-parse" "python2-git-url-parse")
+pkgver=1.2.2
+pkgrel=1
+pkgdesc='A simple GIT URL parser similar to giturlparse.py.)'
+url="https://github.com/coala/${_pkgname}"
+arch=('any')
+license=('MIT')
+makedepends=('python' 'python-setuptools' 'python-pbr'
+ 'python2' 'python2-setuptools' 'python2-pbr')
+source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/coala/$_pkgname/archive/$pkgver.tar.gz")
+sha256sums=('50e58f899449212409195558b066e1f7cc542c8dd2784bccaffd5ba246d1e2c9')
+
+prepare() {
+ cp -a ${_pkgname}-$pkgver{,-py2}
+}
+
+build() {
+ export PBR_VERSION="${pkgver}"
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py build
+
+ cd "${srcdir}/${_pkgname}-${pkgver}-py2"
+ python2 setup.py build
+}
+
+package_python-git-url-parse() {
+ depends=('python')
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-git-url-parse() {
+ depends=('python2')
+ cd "${srcdir}/${_pkgname}-${pkgver}-py2"
+ python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}