diff options
author | Omar Pakker | 2018-01-14 00:19:57 +0100 |
---|---|---|
committer | Omar Pakker | 2018-01-14 00:19:57 +0100 |
commit | 241b05a2f0d25ecbfbb0adebf2b6785a90910892 (patch) | |
tree | 952fca515a398493dd6e56f415b8599b9c3a9198 | |
download | aur-241b05a2f0d25ecbfbb0adebf2b6785a90910892.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7a0ee6f91eb3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-transip-api-git + pkgdesc = Python implementation of TransIP's API (unofficial) + pkgver = 0.3.0.r5.gafb45df + pkgrel = 1 + url = https://github.com/benkonrath/transip-api + arch = any + license = MIT + makedepends = python-setuptools + depends = python + source = git+https://github.com/benkonrath/transip-api.git + sha512sums = SKIP + +pkgname = python-transip-api-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0ca8dbe4c063 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Omar Pakker <archlinux@opakker.nl> + +_pkgname=transip-api +pkgname=python-${_pkgname}-git +pkgver=0.3.0.r5.gafb45df +pkgrel=1 +pkgdesc="Python implementation of TransIP's API (unofficial)" +arch=('any') +url="https://github.com/benkonrath/transip-api" +license=('MIT') +makedepends=('python-setuptools') +depends=('python') +source=("git+https://github.com/benkonrath/transip-api.git") +sha512sums=('SKIP') + +pkgver() { + cd "${_pkgname}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${_pkgname}" + python3 setup.py build +} + +check() { + cd "${_pkgname}" + python3 setup.py test +} + +package() { + cd "${_pkgname}" + python3 setup.py install --root="${pkgdir}" --optimize=1 + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |