[arch-commits] Commit in python-edalize/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 04:57:23 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:57:23
  Author: foutrelis
Revision: 749195

archrelease: copy trunk to community-staging-any

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

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

Copied: python-edalize/repos/community-staging-any/PKGBUILD (from rev 749194, python-edalize/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:57:23 UTC (rev 749195)
@@ -0,0 +1,47 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=edalize
+pkgname=python-$_pkgname
+pkgver=0.2.2
+pkgrel=3
+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() {
+  cd $_pkgname-$pkgver
+
+  rm tests/test_spyglass.py
+
+  sed -i '/pytest/d' setup.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