Date: Thursday, April 6, 2023 @ 17:44:57
Author: felixonmars
Revision: 1440079
archrelease: copy trunk to community-staging-x86_64
Added:
python-gammu/repos/community-staging-x86_64/
python-gammu/repos/community-staging-x86_64/PKGBUILD
(from rev 1440078, python-gammu/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-gammu/repos/community-staging-x86_64/PKGBUILD (from rev 1440078,
python-gammu/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-06 17:44:57 UTC (rev 1440079)
@@ -0,0 +1,31 @@
+# Maintainer: Jaroslav Lichtblau <[email protected]>
+# Contributor: Felix Yan <felixonmars@archlinux>
+
+pkgname=python-gammu
+pkgver=3.2.4
+pkgrel=2
+pkgdesc="Python bindings for Gammu library"
+arch=('x86_64')
+url="https://wammu.eu/python-gammu/"
+license=('GPL')
+depends=('python' 'gammu')
+makedepends=('python-setuptools')
+checkdepends=('libdbi-drivers')
+source=($pkgname-$pkgver.tar.gz::https://github.com/gammu/$pkgname/archive/refs/tags/$pkgver.tar.gz)
+sha512sums=('9d76b402c50018cc52476376952edebb6b0934aa374ea2a2177f5497d0949fcc77644aa2a35c7402b3f2179962d903409b7b1949c5e85a0e5130058d34f89664')
+
+build() {
+ cd "${srcdir}"/python-gammu-$pkgver
+ python setup.py build
+}
+
+check() {
+ # tests can be flaky on slower hardware due to timing
+ cd "${srcdir}"/python-gammu-$pkgver
+ python setup.py test
+}
+
+package() {
+ cd "${srcdir}"/python-gammu-$pkgver
+ python setup.py install --root="${pkgdir}" --optimize=1
+}