[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Thu Jun 28 18:25:53 UTC 2018


    Date: Thursday, June 28, 2018 @ 18:25:53
  Author: felixonmars
Revision: 347454

addpkg: python-periphery 1.1.1-1

Added:
  python-periphery/
  python-periphery/repos/
  python-periphery/trunk/
  python-periphery/trunk/PKGBUILD

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

Added: python-periphery/trunk/PKGBUILD
===================================================================
--- python-periphery/trunk/PKGBUILD	                        (rev 0)
+++ python-periphery/trunk/PKGBUILD	2018-06-28 18:25:53 UTC (rev 347454)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-periphery
+pkgname=(python-periphery python2-periphery)
+pkgver=1.1.1
+pkgrel=1
+pkgdesc="A pure Python 2/3 library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux"
+url="https://github.com/vsergeev/python-periphery"
+license=('MIT')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/vsergeev/python-periphery/archive/v$pkgver.tar.gz")
+sha512sums=('5d453051fa204d17995f15f63305417d9702d3d344d96723bad56014bbcb32355763999ebc121c89816611c265010a76662bc1679652a4a5fbf88e4b8cb45b1a')
+
+prepare() {
+  cp -a python-periphery-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/python-periphery-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/python-periphery-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/python-periphery-$pkgver
+  python setup.py pytest || warning "Tests failed"
+
+  cd "$srcdir"/python-periphery-$pkgver-py2
+  python2 setup.py pytest || warning "Tests failed"
+}
+
+package_python-periphery() {
+  depends=('python')
+
+  cd python-periphery-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-periphery() {
+  depends=('python2')
+
+  cd python-periphery-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


Property changes on: python-periphery/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list