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

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 04:14:17 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:14:16
  Author: foutrelis
Revision: 748583

archrelease: copy trunk to community-staging-any

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

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

Copied: python-nmigen/repos/community-staging-any/PKGBUILD (from rev 748582, python-nmigen/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:14:16 UTC (rev 748583)
@@ -0,0 +1,34 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=nmigen
+pkgname=python-$_pkgname
+pkgver=0.2
+pkgrel=2
+pkgdesc='A refreshed Python toolbox for building complex digital hardware'
+arch=('any')
+url='https://github.com/nmigen/nmigen'
+license=('BSD')
+depends=('python')
+optdepends=('python-pyvcd: for nmigen.pysim'
+            'python-jinja: for nmigen.build')
+makedepends=('python-setuptools-scm')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('0fa6de5ae445a7f9f9d1e1703d9a1f3b9e7b5842a3e46f92454bc4493e780d24051159ddaf4528fa061c135670e587fee2eb8ba565602fd0d2ab94f3493dc147')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list