diff options
author | Balló György | 2020-07-11 09:44:23 +0000 |
---|---|---|
committer | Balló György | 2020-07-11 09:44:23 +0000 |
commit | 9f3a540345d2827ab94cb1c3d7b6f63322b906ff (patch) | |
tree | 9c6fdfe94925660226865d057561fd497de3fbbd | |
download | aur-9f3a540345d2827ab94cb1c3d7b6f63322b906ff.tar.gz |
Moved from [community]
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..40c1183164d3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python2-gammu + pkgdesc = Python bindings for Gammu library + pkgver = 2.12 + pkgrel = 2 + url = https://wammu.eu/python-gammu/ + arch = x86_64 + license = GPL + checkdepends = libdbi-drivers + makedepends = python2-setuptools + makedepends = gammu + source = https://dl.cihar.com/python-gammu/python-gammu-2.12.tar.bz2 + sha256sums = efca72146ef5a5f9c7e7763374f28a3f15c6e80a0b7f07ce4fda52863b0cd4d2 + +pkgname = python2-gammu + depends = python2 + depends = gammu + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e777a2bafe6b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org> +# Contributor: Felix Yan <felixonmars@archlinux> + +_pkgname=python-gammu +pkgname=python2-gammu +pkgver=2.12 +pkgrel=2 +pkgdesc="Python bindings for Gammu library" +arch=('x86_64') +url="https://wammu.eu/python-gammu/" +license=('GPL') +makedepends=('python2-setuptools' 'gammu') +checkdepends=('libdbi-drivers') +source=(https://dl.cihar.com/python-gammu/python-gammu-$pkgver.tar.bz2) +sha256sums=('efca72146ef5a5f9c7e7763374f28a3f15c6e80a0b7f07ce4fda52863b0cd4d2') + +build() { + cd "${srcdir}"/python-gammu-$pkgver + python2 setup.py build +} + +check() { + # tests can be flaky on slower hardware due to timing + cd "${srcdir}"/python-gammu-$pkgver + python2 setup.py test +} + +package() { + depends=('python2' 'gammu') + + cd python-gammu-$pkgver + python2 setup.py install --root="${pkgdir}" --optimize=1 +} |