blob: 71b6be75a8a7a500ae01db321de7b73f39e9ec60 (
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: xiretza <xiretza+aur@xiretza.xyz>
_pkgname=pyVHDLModel
pkgname=python-pyvhdlmodel-git
pkgver=0.25.1.r0.g3776f27
pkgrel=2
pkgdesc="An abstract VHDL language model written in Python"
arch=(any)
url="https://github.com/VHDL/pyVHDLModel"
license=('Apache')
depends=('python' 'python-pytooling')
makedepends=('git' 'python-setuptools')
checkdepends=('python-pytest')
provides=("${pkgname%%-git}=$pkgver")
conflicts=("${pkgname%%-git}")
source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgname"
python setup.py build
}
check() {
cd "$_pkgname"
pytest tests/
}
package() {
cd "$_pkgname"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm 644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|