[arch-commits] Commit in python-edalize/repos (community-any community-any/PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sat May 30 19:28:06 UTC 2020


    Date: Saturday, May 30, 2020 @ 19:28:06
  Author: ffy00
Revision: 637496

archrelease: copy trunk to community-any

Added:
  python-edalize/repos/community-any/
  python-edalize/repos/community-any/PKGBUILD
    (from rev 637495, python-edalize/trunk/PKGBUILD)

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

Copied: python-edalize/repos/community-any/PKGBUILD (from rev 637495, python-edalize/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-05-30 19:28:06 UTC (rev 637496)
@@ -0,0 +1,43 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=edalize
+pkgname=python-$_pkgname
+pkgver=0.2.2
+pkgrel=1
+pkgdesc='An abstraction library for interfacing EDA tools'
+arch=('any')
+url='https://github.com/olofk/edalize'
+license=('BSD')
+depends=('python' 'python-jinja')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('48b2642ff9a072ec33ed907fd82fa63c33f7e7deeaf442972a2b0fcd10fa05715f189e213a80ef75176d87574c2ad660c5af0df5b90d8245416ae3ed29b44d18')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+  rm $_pkgname-$pkgver/tests/test_spyglass.py
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  PYTHONPATH=. pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list