Date: Thursday, April 6, 2023 @ 14:45:10
  Author: felixonmars
Revision: 1439317

archrelease: copy trunk to community-staging-any

Added:
  python-periphery/repos/community-staging-any/
  python-periphery/repos/community-staging-any/PKGBUILD
    (from rev 1439315, python-periphery/trunk/PKGBUILD)

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

Copied: python-periphery/repos/community-staging-any/PKGBUILD (from rev 
1439315, python-periphery/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 14:45:10 UTC (rev 1439317)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-periphery
+pkgver=2.3.0
+pkgrel=3
+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')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/vsergeev/python-periphery/archive/v$pkgver.tar.gz";)
+sha512sums=('34042d9364d7846252f464cffb1361ea1c4717cce9c1fd6788f4be495784a17c42fc5fcf3f296a7d7277c420ed876f6c2815f9e46936460275356405911cb50d')
+
+build() {
+  cd python-periphery-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd python-periphery-$pkgver
+  python setup.py pytest || echo "Tests failed"
+}
+
+package() {
+  cd python-periphery-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to