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

Felix Yan felixonmars at archlinux.org
Tue Nov 10 05:10:07 UTC 2020


    Date: Tuesday, November 10, 2020 @ 05:10:06
  Author: felixonmars
Revision: 749338

archrelease: copy trunk to community-staging-any

Added:
  python-liteeth/repos/community-staging-any/
  python-liteeth/repos/community-staging-any/PKGBUILD
    (from rev 749336, python-liteeth/trunk/PKGBUILD)

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

Copied: python-liteeth/repos/community-staging-any/PKGBUILD (from rev 749336, python-liteeth/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 05:10:06 UTC (rev 749338)
@@ -0,0 +1,35 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=liteeth
+pkgname=python-$_pkgname
+pkgver=2020.08
+pkgrel=2
+pkgdesc='Small footprint and configurable Ethernet core'
+arch=('any')
+url="https://github.com/enjoy-digital/$_pkgname"
+license=('BSD')
+depends=('python-migen' 'python-litex')
+makedepends=('python-setuptools')
+#checkdepends=('python-pytest-runner') # broken env
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('6b7aacde76cc82217bc218152fbe9a9861c2decdb0ab6edeb277eb4ac1aac363f4eef4fdf407b74064d4387c44369182fecf55994fc3d88e18011e852513cfa6')
+
+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