[arch-commits] Commit in python-gammu/trunk (PKGBUILD)

Jaroslav Lichtblau jlichtblau at archlinux.org
Fri Jul 10 16:57:03 UTC 2020


    Date: Friday, July 10, 2020 @ 16:57:03
  Author: jlichtblau
Revision: 663120

upgpkg: python-gammu 3.0-1 - new upstream release

Modified:
  python-gammu/trunk/PKGBUILD

----------+
 PKGBUILD |   35 ++++++++---------------------------
 1 file changed, 8 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-10 16:53:14 UTC (rev 663119)
+++ PKGBUILD	2020-07-10 16:57:03 UTC (rev 663120)
@@ -1,29 +1,22 @@
 # 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
+pkgname=python-gammu
+pkgver=3.0
+pkgrel=1
 pkgdesc="Python bindings for Gammu library"
 arch=('x86_64')
 url="https://wammu.eu/python-gammu/"
 license=('GPL')
-makedepends=('python-setuptools' 'python2-setuptools' 'gammu')
+depends=('python' 'gammu')
+makedepends=('python-setuptools')
 checkdepends=('libdbi-drivers')
 source=(https://dl.cihar.com/python-gammu/python-gammu-$pkgver.tar.bz2)
-sha256sums=('efca72146ef5a5f9c7e7763374f28a3f15c6e80a0b7f07ce4fda52863b0cd4d2')
+sha256sums=('c2b2c316a279b30f4d0bb5e8f7e4e36362449ce82d772b615e5bf3e55c152c23')
 
-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() {
@@ -30,21 +23,9 @@
   # 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
+package() {
+  cd "${srcdir}"/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