[arch-commits] Commit in python-pythondata-cpu-lm32/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Thu Dec 2 18:25:15 UTC 2021


    Date: Thursday, December 2, 2021 @ 18:25:14
  Author: foutrelis
Revision: 1062135

archrelease: copy trunk to community-staging-any

Added:
  python-pythondata-cpu-lm32/repos/community-staging-any/
  python-pythondata-cpu-lm32/repos/community-staging-any/PKGBUILD
    (from rev 1062134, python-pythondata-cpu-lm32/trunk/PKGBUILD)

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

Copied: python-pythondata-cpu-lm32/repos/community-staging-any/PKGBUILD (from rev 1062134, python-pythondata-cpu-lm32/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-02 18:25:14 UTC (rev 1062135)
@@ -0,0 +1,31 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=pythondata-cpu-lm32
+_pyname=${_pkgname//-/_}
+pkgname=python-$_pkgname
+_vexriscv=1.0.1
+pkgver=2020.08
+pkgrel=2
+pkgdesc='Python module containing verilog files for lm32 cpu (for use with LiteX)'
+arch=('any')
+url="https://github.com/litex-hub/$_pkgname"
+license=('custom:Lattice')
+depends=('python')
+makedepends=('python-setuptools')
+options=('!strip')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('a70c73f9d99da4eb6cbcc00717e22eb56a78f42c7e3dd000bd7cc8330877ef2e7ea907282a4848c60c1903fd8d69e823b69118bf9d2a6462d3fac63301b9c703')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 $_pyname/verilog/LICENSE.LATTICE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list