[arch-commits] Commit in python-litepcie/repos (community-any community-any/PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Tue Apr 28 15:12:02 UTC 2020
Date: Tuesday, April 28, 2020 @ 15:12:01
Author: ffy00
Revision: 622034
archrelease: copy trunk to community-any
Added:
python-litepcie/repos/community-any/
python-litepcie/repos/community-any/PKGBUILD
(from rev 622033, python-litepcie/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-litepcie/repos/community-any/PKGBUILD (from rev 622033, python-litepcie/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-04-28 15:12:01 UTC (rev 622034)
@@ -0,0 +1,36 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=litepcie
+pkgname=python-$_pkgname
+pkgver=2020.04
+pkgrel=1
+pkgdesc='Small footprint and configurable PCIe core'
+arch=('any')
+url="https://github.com/enjoy-digital/$_pkgname"
+license=('BSD')
+depends=('python-migen' 'python-litex' 'python-yaml')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('3a442d4e5907a91cbdbf1b876a44a7211340c4bfa25abeadb7e7202efefde3ee2e9a0eaf6791ff3a053fed2b7efc9b41fd9b4d326d94bc6f87c70fdf09d80ec3')
+
+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