summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgardar2020-01-14 11:56:34 +0000
committergardar2020-01-14 11:56:34 +0000
commit99d9c888ad24f4ff2eb0c51e75302fd69670e9a5 (patch)
tree691ede1a94037c6b8c4a128d1619cc1f833bfe20
downloadaur-python-git-url-parse.tar.gz
Initial upload python-git-url-parse
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD42
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3171fde7630
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = python-git-url-parse
+ pkgdesc = A simple GIT URL parser similar to giturlparse.py.)
+ pkgver = 1.2.2
+ pkgrel = 1
+ url = https://github.com/coala/git-url-parse
+ arch = any
+ license = MIT
+ makedepends = python
+ makedepends = python-setuptools
+ makedepends = python-pbr
+ makedepends = python2
+ makedepends = python2-setuptools
+ makedepends = python2-pbr
+ source = git-url-parse-1.2.2.tar.gz::https://github.com/coala/git-url-parse/archive/1.2.2.tar.gz
+ sha256sums = 50e58f899449212409195558b066e1f7cc542c8dd2784bccaffd5ba246d1e2c9
+
+pkgname = python-git-url-parse
+ depends = python
+
+pkgname = python2-git-url-parse
+ depends = python2
+
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"
+}