blob: 88e16851a978c9c5dbd7a80622ded35278e40e11 (
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
|
# Maintainer: Scott Alfter <scott@alfter.us>
_pkgname=amaranth-soc
_git_commit=9d6bd2c54b4ca28ea4c96cae38edb4c9c3bfdf51
pkgname="python-$_pkgname"
pkgver=0.1a.r20.g9d6bd2c
pkgrel=1
pkgdesc="System on Chip toolkit for Amaranth"
arch=(any)
url="https://github.com/amaranth-lang/amaranth-soc"
license=('BSD-2')
depends=('python-amaranth')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools-scm' 'python-pdm-backend') # 'python-jschon')
optdepends=('python-paramiko: for remote builds')
# FIXME: symbiyosys
provides=("python-$_pkgname=$pkgver")
source=(
"git+$url.git"
)
sha256sums=(
'SKIP'
)
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare()
{
cd "$_pkgname"
git checkout $_git_commit
sed -i -e "s/pdm\\.backend\\._vendor\\.//" pdm_build.py
}
build() {
cd "$_pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$_pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|