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

Eli Schwartz eschwartz at archlinux.org
Thu Jul 26 22:13:40 UTC 2018


    Date: Thursday, July 26, 2018 @ 22:13:39
  Author: eschwartz
Revision: 363650

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

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

Copied: python-gammu/repos/community-staging-x86_64/PKGBUILD (from rev 363649, python-gammu/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-07-26 22:13:39 UTC (rev 363650)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux>
+
+pkgbase=python-gammu
+pkgname=('python-gammu' 'python2-gammu')
+pkgver=2.11
+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=('8938af9a92804028e729f68a2e23ccbde525590a4cdc2f43e59d490855a05db6')
+
+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