[arch-commits] Commit in python-nmigen-boards/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 23 19:51:30 UTC 2020
Date: Monday, November 23, 2020 @ 19:51:30
Author: foutrelis
Revision: 760139
archrelease: copy trunk to community-staging-any
Added:
python-nmigen-boards/repos/community-staging-any/
python-nmigen-boards/repos/community-staging-any/PKGBUILD
(from rev 760138, python-nmigen-boards/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-nmigen-boards/repos/community-staging-any/PKGBUILD (from rev 760138, python-nmigen-boards/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-23 19:51:30 UTC (rev 760139)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=nmigen-boards
+pkgname=python-$_pkgname
+_commit=d9264bf03b1a7ddb71017a2885383c4cec777f53
+pkgver=r133.d9264bf
+pkgrel=2
+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=$_commit")
+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