blob: facfeaaa71979643525ccab7698a87127589dab3 (
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
45
46
47
48
49
50
51
52
|
# Maintainer: xiretza <xiretza+aur@xiretza.xyz>
_pkgname=python-sdf-timing
pkgname="$_pkgname-git"
pkgver=r118.5b9dc79
pkgrel=1
pkgdesc="Python library for working Standard Delay Format (SDF) Timing Annotation files"
arch=(any)
url="https://github.com/SymbiFlow/python-sdf-timing"
license=('ISC')
depends=('python' 'python-ply')
makedepends=('git' 'python-setuptools')
checkdepends=('python-pytest')
provides=("${pkgname%%-git}")
conflicts=("${pkgname%%-git}")
source=(
"git+$url.git"
"0001-setup.py-don-t-use-dependencies-in-requirements.txt.patch"
)
sha256sums=('SKIP'
'e26af72e6dbe463dd435aa04513533410d6b67433d7be68a751cef6e21eefd04')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$_pkgname"
patch -p1 < "$srcdir/0001-setup.py-don-t-use-dependencies-in-requirements.txt.patch"
}
build() {
cd "$_pkgname"
python setup.py build
}
check() {
cd "$_pkgname"
PYTHONPATH=. pytest
}
package() {
cd "$_pkgname"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|