Date: Friday, April 7, 2023 @ 12:52:06
Author: felixonmars
Revision: 1441137
archrelease: copy trunk to community-staging-any
Added:
python-litedram/repos/community-staging-any/
python-litedram/repos/community-staging-any/PKGBUILD
(from rev 1441134, python-litedram/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-litedram/repos/community-staging-any/PKGBUILD (from rev 1441134,
python-litedram/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-07 12:52:06 UTC (rev 1441137)
@@ -0,0 +1,35 @@
+# Maintainer: Filipe LaĆns (FFY00) <[email protected]>
+
+_pkgname=litedram
+pkgname=python-$_pkgname
+pkgver=2021.08
+pkgrel=2
+pkgdesc='Small footprint and configurable DRAM core'
+arch=('any')
+url="https://github.com/enjoy-digital/$_pkgname"
+license=('BSD')
+depends=('python-migen' 'python-litex' 'python-yaml')
+makedepends=('python-setuptools')
+#checkdepends=('python-pytest-runner' 'python-numpy' 'python-liteiclink') #
missing pythondata-cpu-vexriscv release
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('e84cefc357a31e8e421f9a39d0eeb26d3b3da300ccbcebe6cf907fa4c2465e07a819fff3e4368e1fd2b726a17b91dfd4e36d1ce954ddf2e5b338a4ac373bc003')
+
+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
+}