archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-nmigen / trunk / PKGBUILD
blobea8e33eab66b893c436e337b21f4515bd0c9c844
1 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 _pkgname=nmigen
4 pkgname=python-$_pkgname
5 pkgver=0.2
6 pkgrel=5
7 pkgdesc='A refreshed Python toolbox for building complex digital hardware'
8 arch=('any')
9 url='https://github.com/nmigen/nmigen'
10 license=('BSD')
11 depends=('python')
12 optdepends=('python-pyvcd: for nmigen.pysim'
13             'python-jinja: for nmigen.build')
14 makedepends=('python-setuptools-scm')
15 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
16 sha512sums=('0fa6de5ae445a7f9f9d1e1703d9a1f3b9e7b5842a3e46f92454bc4493e780d24051159ddaf4528fa061c135670e587fee2eb8ba565602fd0d2ab94f3493dc147')
18 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
20 build() {
21   cd $_pkgname-$pkgver
23   python setup.py build
26 package() {
27   cd $_pkgname-$pkgver
29   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
31   install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
34 # vim:set ts=2 sw=2 et: