Date: Wednesday, December 1, 2021 @ 14:56:46 Author: foutrelis Revision: 1059579
archrelease: copy trunk to community-staging-any Added: python-litedram/repos/community-staging-any/ python-litedram/repos/community-staging-any/PKGBUILD (from rev 1059576, python-litedram/trunk/PKGBUILD) ----------+ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) Copied: python-litedram/repos/community-staging-any/PKGBUILD (from rev 1059576, python-litedram/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2021-12-01 14:56:46 UTC (rev 1059579) @@ -0,0 +1,35 @@ +# Maintainer: Filipe LaĆns (FFY00) <la...@archlinux.org> + +_pkgname=litedram +pkgname=python-$_pkgname +pkgver=2020.12 +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=('fa924e17f4a3bfd8a82658c108ada3250a6f9198fa083005ec65f6f9c3933d12169732b8ed46eb55b945d14d658c4245f3407d84616d4b229399fe5193bb32c2') + +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 +}