blob: a86cf6037b86a1b38163529e5d398ab4ecf5ebc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Will Price <will.price94@gmail.com>
# Co-Maintainer: xiretza <xiretza+aur@xiretza.xyz>
pkgname=python-migen-git
epoch=1
pkgver=0.9.2.r81.gccaee68
pkgrel=2
pkgdesc="A python toolbox for building complex digital hardware"
arch=(any)
url="https://github.com/m-labs/migen"
license=('BSD')
makedepends=('git' 'python-setuptools')
depends=('python' 'python-colorama')
checkdepends=('python-pytest')
provides=("${pkgname%%-git}")
conflicts=("${pkgname%%-git}")
replaces=('migen-git')
source=("git+$url")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/migen"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/migen"
python setup.py build
}
check() {
cd "${srcdir}/migen"
env PYTHONPATH=. pytest
}
package() {
cd "${srcdir}/migen"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et:
|