[arch-commits] Commit in python-nmigen-boards/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sat Mar 28 18:21:46 UTC 2020


    Date: Saturday, March 28, 2020 @ 18:21:46
  Author: ffy00
Revision: 605386

upgpkg: python-nmigen-boards r100.18315d8-1

Added:
  python-nmigen-boards/trunk/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-28 18:21:46 UTC (rev 605386)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=nmigen-boards
+pkgname=python-$_pkgname
+_commit=18315d8efc4b2d0569ff1abf19a92f495de7745d
+pkgver=r100.18315d8
+pkgrel=1
+pkgdesc='Board and connector definition files for nMigen'
+arch=('any')
+url='https://github.com/nmigen/nmigen-boards'
+license=('BSD')
+depends=('python-nmigen')
+makedepends=('git' 'python-setuptools-scm')
+source=("git+$url?commit=$pkgver")
+sha512sums=('SKIP')
+
+pkgver() {
+  cd $_pkgname
+
+  printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+  cd $_pkgname
+
+  python setup.py build
+}
+
+package() {
+  cd $_pkgname
+
+  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