[arch-commits] Commit in python-pythondata-cpu-vexriscv/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Tue Apr 28 15:29:51 UTC 2020


    Date: Tuesday, April 28, 2020 @ 15:29:51
  Author: ffy00
Revision: 622041

upgpkg: python-pythondata-cpu-vexriscv 2020.04-1

Added:
  python-pythondata-cpu-vexriscv/trunk/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-28 15:29:51 UTC (rev 622041)
@@ -0,0 +1,41 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=pythondata-cpu-vexriscv
+_pyname=${_pkgname//-/_}
+pkgname=python-$_pkgname
+_vexriscv=1.0.1
+pkgver=2020.04
+pkgrel=1
+pkgdesc='Python module containing verilog files for vexriscv cpu (for use with LiteX)'
+arch=('any')
+url="https://github.com/litex-hub/$_pkgname"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+options=('!strip')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
+        "VexRiscv-$_vexriscv.tar.gz::https://github.com/SpinalHDL/VexRiscv/archive/$_vexriscv.tar.gz")
+sha512sums=('9f4a0ca2cabfe7cefd5b1be1e40b6f02f2fb5edb9d70099d6d95530f5e4476574a3901340dcac606f7a1a31a2ac29764227f01b93f3e912b299718751746078b'
+            '830b18faf8fb54eb443c9704f0e28da546231f7be52df5b59e4eb27a341eb4e947ec982782eee6c1d5103b4e582c7ffbab62ab5a77c465c32f3f4cd716b6136e')
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  rmdir $_pyname/verilog/ext/VexRiscv
+  ln -sf "$srcdir"/VexRiscv-$_vexriscv $_pyname/verilog/ext/VexRiscv
+}
+
+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/ext/VexRiscv/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+



More information about the arch-commits mailing list