[arch-commits] Commit in python-gammu/repos (4 files)
Felix Yan
fyan at archlinux.org
Wed Sep 16 04:34:33 UTC 2015
Date: Wednesday, September 16, 2015 @ 06:34:33
Author: fyan
Revision: 140356
archrelease: copy trunk to community-i686, community-x86_64
Added:
python-gammu/repos/community-i686/
python-gammu/repos/community-i686/PKGBUILD
(from rev 140355, python-gammu/trunk/PKGBUILD)
python-gammu/repos/community-x86_64/
python-gammu/repos/community-x86_64/PKGBUILD
(from rev 140355, python-gammu/trunk/PKGBUILD)
---------------------------+
community-i686/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++
community-x86_64/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 100 insertions(+)
Copied: python-gammu/repos/community-i686/PKGBUILD (from rev 140355, python-gammu/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-09-16 04:34:33 UTC (rev 140356)
@@ -0,0 +1,50 @@
+# $Id: PKGBUILD 118184 2014-09-02 11:14:17Z fyan $
+# Maintainer: Felix Yan <felixonmars at archlinux>
+
+pkgbase=python-gammu
+pkgname=('python-gammu' 'python2-gammu')
+pkgver=2.4
+pkgrel=1
+pkgdesc="Python bindings for Gammu library"
+arch=('i686' 'x86_64')
+url="http://wammu.eu/python-gammu/"
+license=('GPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'gammu')
+source=("https://pypi.python.org/packages/source/p/python-gammu/python-gammu-$pkgver.tar.gz")
+md5sums=('a396cd7a8944d1133a2c7713a7333a35')
+
+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() {
+ cd "$srcdir/python-gammu-$pkgver"
+ python setup.py test || warning "Tests failed"
+
+ cd "$srcdir/python-gammu-$pkgver-py2"
+ python2 setup.py test || warning "Tests failed"
+}
+
+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
+}
+
+# vim:set ts=2 sw=2 et:
Copied: python-gammu/repos/community-x86_64/PKGBUILD (from rev 140355, python-gammu/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2015-09-16 04:34:33 UTC (rev 140356)
@@ -0,0 +1,50 @@
+# $Id: PKGBUILD 118184 2014-09-02 11:14:17Z fyan $
+# Maintainer: Felix Yan <felixonmars at archlinux>
+
+pkgbase=python-gammu
+pkgname=('python-gammu' 'python2-gammu')
+pkgver=2.4
+pkgrel=1
+pkgdesc="Python bindings for Gammu library"
+arch=('i686' 'x86_64')
+url="http://wammu.eu/python-gammu/"
+license=('GPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'gammu')
+source=("https://pypi.python.org/packages/source/p/python-gammu/python-gammu-$pkgver.tar.gz")
+md5sums=('a396cd7a8944d1133a2c7713a7333a35')
+
+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() {
+ cd "$srcdir/python-gammu-$pkgver"
+ python setup.py test || warning "Tests failed"
+
+ cd "$srcdir/python-gammu-$pkgver-py2"
+ python2 setup.py test || warning "Tests failed"
+}
+
+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
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list