[arch-commits] Commit in python-litejesd204b/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Tue Apr 28 15:14:26 UTC 2020
Date: Tuesday, April 28, 2020 @ 15:14:25
Author: ffy00
Revision: 622038
upgpkg: python-litejesd204b 2020.04-1
Added:
python-litejesd204b/trunk/PKGBUILD
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Added: PKGBUILD
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-04-28 15:14:25 UTC (rev 622038)
@@ -0,0 +1,36 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=litejesd204b
+pkgname=python-$_pkgname
+pkgver=2020.04
+pkgrel=1
+pkgdesc='Small footprint and configurable JESD204B core'
+arch=('any')
+url="https://github.com/enjoy-digital/$_pkgname"
+license=('BSD')
+depends=('python-migen' 'python-litex')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('c4122393f8deaee01a7db30745323ef1775e208e33139adbc3980e27ff54eae9c70bc00975aa821ee4760f474f45fb3e58a2110bf95c3c6ec192b9e6534e9d64')
+
+build() {
+ cd $_pkgname-$pkgver
+
+ python setup.py build
+}
+
+check() {
+ cd $_pkgname-$pkgver
+
+ python setup.py 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
+}
+
More information about the arch-commits
mailing list