upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / python-pythondata-cpu-mor1kx / repos / community-any / PKGBUILD
blob190da8fc9b6f91f45838646253ab5990807b3402
1 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 _pkgname=pythondata-cpu-mor1kx
4 _pyname=${_pkgname//-/_}
5 pkgname=python-$_pkgname
6 pkgver=2022.08
7 pkgrel=2
8 pkgdesc='Python module containing verilog files for mor1kx cpu (for use with LiteX)'
9 arch=('any')
10 url="https://github.com/litex-hub/$_pkgname"
11 license=('custom:OHDL')
12 depends=('python')
13 makedepends=('python-setuptools')
14 options=('!strip')
15 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
16 sha512sums=('ee0fc7a143740fd4d48a2c5dde0adc90958f651956ebda94b39e1a0bbf65863a0777f788b9820c5ed00101593e95ce891634db9ec18e40bd4cb3675cdf84c473')
18 build() {
19   cd $_pkgname-$pkgver
21   python setup.py build
24 package() {
25   cd $_pkgname-$pkgver
27   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
29   install -Dm 644 $_pyname/verilog/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE