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

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


    Date: Saturday, March 28, 2020 @ 18:21:49
  Author: ffy00
Revision: 605388

archrelease: copy trunk to community-any

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

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

Copied: python-nmigen-boards/repos/community-any/PKGBUILD (from rev 605387, python-nmigen-boards/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-03-28 18:21:49 UTC (rev 605388)
@@ -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