summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiretza2020-11-17 12:52:43 +0100
committerXiretza2020-11-17 12:52:43 +0100
commitb2adc336b3fcdc5e6218889a994fed3e217bd17c (patch)
tree94e5645ebf7202e912a4ccc9af747878a85e72ae
downloadaur-python-pythondata-cpu-mor1kx-git.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD35
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7dd8834348c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = python-pythondata-cpu-mor1kx-git
+ pkgdesc = Python module containing verilog files for mor1kx cpu (for use with LiteX)
+ pkgver = 2020.08.r3.gff01892
+ pkgrel = 1
+ url = https://github.com/litex-hub/pythondata-cpu-mor1kx
+ arch = any
+ license = custom:OHDL
+ makedepends = git
+ makedepends = python-setuptools
+ depends = python
+ provides = python-pythondata-cpu-mor1kx=2020.08.r3.gff01892
+ conflicts = python-pythondata-cpu-mor1kx
+ source = git+https://github.com/litex-hub/pythondata-cpu-mor1kx
+ sha256sums = SKIP
+
+pkgname = python-pythondata-cpu-mor1kx-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c40fd65c016
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: xiretza <xiretza+aur@xiretza.xyz>
+
+_srcname=pythondata-cpu-mor1kx
+pkgname="python-$_srcname-git"
+pkgver=2020.08.r3.gff01892
+pkgrel=1
+pkgdesc="Python module containing verilog files for mor1kx cpu (for use with LiteX)"
+arch=(any)
+url="https://github.com/litex-hub/pythondata-cpu-mor1kx"
+license=('custom:OHDL')
+depends=(python)
+makedepends=(git python-setuptools)
+provides=("${pkgname%%-git}=$pkgver")
+conflicts=("${pkgname%%-git}")
+source=("git+$url")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$_srcname"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$_srcname"
+ python setup.py build
+}
+
+package() {
+ cd "$_srcname"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm644 "${_srcname//-/_}/verilog/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set et ts=2 syntax=PKGBUILD: