[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Thu Sep 19 05:36:56 UTC 2019


    Date: Thursday, September 19, 2019 @ 05:36:55
  Author: felixonmars
Revision: 511136

addpkg: python-gdspy 1.4-1

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

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

Added: python-gdspy/trunk/PKGBUILD
===================================================================
--- python-gdspy/trunk/PKGBUILD	                        (rev 0)
+++ python-gdspy/trunk/PKGBUILD	2019-09-19 05:36:55 UTC (rev 511136)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-gdspy
+pkgver=1.4
+pkgrel=1
+pkgdesc="Return the gdspy true value of an iterable"
+url="https://github.com/heitzmann/gdspy"
+license=('custom:BSL')
+arch=('x86_64')
+depends=('python-numpy')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/heitzmann/gdspy/archive/v$pkgver.tar.gz")
+sha512sums=('68f7746b0f4d4b64df14985bf0930e9de9dfb70032d51555ba9407cca6757f58e83cff2325c4fe19f66e21b08c888a98878a17cace23ff9353b56a074bd6a395')
+
+build() {
+  cd gdspy-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd gdspy-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd gdspy-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list