[arch-commits] Commit in python-gammu/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 4 08:59:29 UTC 2019


    Date: Monday, November 4, 2019 @ 08:59:28
  Author: foutrelis
Revision: 523825

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 523824, python-gammu/trunk/PKGBUILD)

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Copied: python-gammu/repos/community-staging-x86_64/PKGBUILD (from rev 523824, python-gammu/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-11-04 08:59:28 UTC (rev 523825)
@@ -0,0 +1,50 @@
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux>
+
+pkgbase=python-gammu
+pkgname=('python-gammu' '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=('python-setuptools' 'python2-setuptools' 'gammu')
+checkdepends=('libdbi-drivers')
+source=(https://dl.cihar.com/python-gammu/python-gammu-$pkgver.tar.bz2)
+sha256sums=('efca72146ef5a5f9c7e7763374f28a3f15c6e80a0b7f07ce4fda52863b0cd4d2')
+
+prepare() {
+  cp -a python-gammu-$pkgver{,-py2}
+}
+
+build() {
+  cd "${srcdir}"/python-gammu-$pkgver
+  python setup.py build
+
+  cd "${srcdir}"/python-gammu-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  # tests can be flaky on slower hardware due to timing
+  cd "${srcdir}"/python-gammu-$pkgver
+  python setup.py test 
+
+  cd "${srcdir}"/python-gammu-$pkgver-py2
+  python2 setup.py test
+}
+
+package_python-gammu() {
+  depends=('python' 'gammu')
+
+  cd python-gammu-$pkgver
+  python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-gammu() {
+  depends=('python2' 'gammu')
+
+  cd python-gammu-$pkgver-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+}



More information about the arch-commits mailing list