blob: 0ca8dbe4c063788598a863726e071162ce09e66a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"
}
|