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

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


    Date: Tuesday, April 28, 2020 @ 15:47:27
  Author: ffy00
Revision: 622053

archrelease: copy trunk to community-any

Added:
  python-pythondata-cpu-mor1kx/repos/community-any/
  python-pythondata-cpu-mor1kx/repos/community-any/PKGBUILD
    (from rev 622052, python-pythondata-cpu-mor1kx/trunk/PKGBUILD)

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

Copied: python-pythondata-cpu-mor1kx/repos/community-any/PKGBUILD (from rev 622052, python-pythondata-cpu-mor1kx/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-04-28 15:47:27 UTC (rev 622053)
@@ -0,0 +1,32 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=pythondata-cpu-mor1kx
+_pyname=${_pkgname//-/_}
+pkgname=python-$_pkgname
+_vexriscv=1.0.1
+pkgver=2020.04
+pkgrel=1
+pkgdesc='Python module containing verilog files for mor1kx cpu (for use with LiteX)'
+arch=('any')
+url="https://github.com/litex-hub/$_pkgname"
+license=('custom:OHDL')
+depends=('python')
+makedepends=('python-setuptools')
+options=('!strip')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('fc7e4fdba394831bd1dce9a47a33cf91f051b04108af9dca8dc57f1a9221d53c16692ef4117a7cca485fdc9684848e31ca9311be73088b8c1108e25fed6e9df4')
+
+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 "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+


More information about the arch-commits mailing list