blob: 2ffa896899825f8578b392f9022cec78568a7a63 (
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
|
# Maintainer: Richard Petri <git@rpls.de>
pkgname=prjapicula
pkgver=0.15
pkgrel=1
pkgdesc="Project Apicula bitstream documentation for Gowin FPGAs"
arch=('i686' 'x86_64')
url="https://github.com/YosysHQ/apicula"
license=('MIT')
depends=('python>=3.8' 'python-numpy' 'python-pandas' 'python-pillow' 'python-crc' 'python-openpyxl')
makedepends=('python-setuptools')
provides=('prjapicula')
_name=Apycula
source=("apicula-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
'version.patch')
sha256sums=('060e671ef51a5be707644ce6674f18b97c1e715c7a47cb72b3c641baa5048538'
'81f1d4b72a917636272a40a400aa01874ac98429d9a2fa601f0a4a0eafa020fa')
prepare() {
cd "$srcdir/Apycula-$pkgver"
sed -e "s/@@VERSION@@/$pkgver/" $srcdir/version.patch | patch -p1
}
build() {
cd "$srcdir/Apycula-$pkgver"
python setup.py build
}
package() {
cd "$srcdir/Apycula-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
# vim:set ts=2 sw=2 et:
|