Skip to content

Commit f744ccd

Browse files
committed
[python-amaranth*,xilinx*] Add amaranth zynq packages
1 parent 0b0fd7d commit f744ccd

6 files changed

Lines changed: 147 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#
2+
3+
_pkgname=amaranth-axi
4+
pkgname="python-$_pkgname"
5+
pkgver=0.1.0
6+
pkgrel=0
7+
pkgdesc="Amaranth support for AXI bus"
8+
arch=(any)
9+
url="https://github.com/yuyichao/amaranth-axi"
10+
license=('BSD-2-Clause')
11+
depends=('python' 'python-amaranth' 'python-transactron')
12+
makedepends=('git' 'python-build' 'python-installer' 'python-wheel'
13+
'python-packaging' 'python-hatchling' 'python-hatch-vcs')
14+
source=("git+https://github.com/yuyichao/amaranth-axi.git#tag=v${pkgver}"
15+
"git+https://github.com/ZipCPU/wb2axip")
16+
sha512sums=('af2d965c104db38e4b5bd44f0d9c4bb12efbe8726e3c20d3e63f54126ab955211dc5ac4d1d7d63cf12916d07c423ebde84fe683721b1c63452374992462b9836'
17+
'SKIP')
18+
19+
prepare() {
20+
cd "${_pkgname}"
21+
22+
git submodule init
23+
git config submodule.thirdparty/wb2axip.url "$srcdir/wb2axip"
24+
git -c protocol.file.allow=always submodule update
25+
}
26+
27+
build() {
28+
cd "${_pkgname}"
29+
30+
python -m build --wheel --no-isolation
31+
}
32+
33+
package() {
34+
cd "${_pkgname}"
35+
36+
python -m installer --destdir="$pkgdir" dist/*.whl
37+
38+
install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
39+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
maintainers:
2+
- github: yuyichao
3+
4+
pre_build_script: update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
5+
post_build: git_pkgbuild_commit
6+
7+
repo_depends:
8+
- python-amaranth
9+
- python-transactron
10+
11+
update_on:
12+
- source: github
13+
github: yuyichao/amaranth-axi
14+
use_max_tag: true
15+
include_regex: v(\d+.\d+.\d+)
16+
- alias: python
17+
- source: manual
18+
manual: 1
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
3+
_pkgname=amaranth-zynq
4+
pkgname="python-$_pkgname"
5+
pkgver=0.1.0
6+
pkgrel=0
7+
pkgdesc="Amaranth Zynq support"
8+
arch=(any)
9+
url="https://github.com/yuyichao/amaranth-zynq"
10+
license=('BSD-2-Clause')
11+
depends=('python' 'python-amaranth' 'python-amaranth-axi')
12+
makedepends=('git' 'python-build' 'python-installer' 'python-wheel'
13+
'python-packaging' 'python-setuptools-scm')
14+
source=("git+https://github.com/yuyichao/amaranth-zynq.git#tag=v${pkgver}")
15+
sha512sums=('241cf6468638c7fe191c108517486bf9bd9b4be45389f4e01ea5163ec3dde000b63beb6c0669f6961f7e7fe5a1b24c137076f6aeea5f5802a59abd4d179b4782')
16+
17+
build() {
18+
cd "${_pkgname}"
19+
20+
python -m build --wheel --no-isolation
21+
}
22+
23+
package() {
24+
cd "${_pkgname}"
25+
26+
python -m installer --destdir="$pkgdir" dist/*.whl
27+
28+
install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
29+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
maintainers:
2+
- github: yuyichao
3+
4+
pre_build_script: update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
5+
post_build: git_pkgbuild_commit
6+
7+
repo_depends:
8+
- python-amaranth
9+
- python-amaranth-axi
10+
11+
update_on:
12+
- source: github
13+
github: yuyichao/amaranth-zynq
14+
use_max_tag: true
15+
include_regex: v(\d+.\d+.\d+)
16+
- alias: python
17+
- source: manual
18+
manual: 1
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
3+
_pkgname=xilinx_ps_config
4+
pkgname="python-$_pkgname"
5+
pkgver=0.1.0
6+
pkgrel=0
7+
pkgdesc="Xilinx PS boot loader/config generator"
8+
arch=(any)
9+
url="https://github.com/yuyichao/xilinx_ps_config"
10+
license=('BSD-2-Clause')
11+
depends=('python')
12+
makedepends=('git' 'python-build' 'python-installer' 'python-wheel'
13+
'python-packaging' 'python-setuptools-scm')
14+
source=("git+https://github.com/yuyichao/xilinx_ps_config.git#tag=v${pkgver}")
15+
sha512sums=('6887ff220ecdec857e624e06bcae8fc965c26f913d3468e8ec638a5769b849aacc10349bceaf5973e56767bece63e8a5b14e7f3615fc55ee0b3629d45c50f569')
16+
17+
build() {
18+
cd "${_pkgname}"
19+
20+
python -m build --wheel --no-isolation
21+
}
22+
23+
package() {
24+
cd "${_pkgname}"
25+
26+
python -m installer --destdir="$pkgdir" dist/*.whl
27+
28+
# install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
29+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
maintainers:
2+
- github: yuyichao
3+
4+
pre_build_script: update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
5+
post_build: git_pkgbuild_commit
6+
7+
update_on:
8+
- source: github
9+
github: yuyichao/xilinx_ps_config
10+
use_max_tag: true
11+
include_regex: v(\d+.\d+.\d+)
12+
- alias: python
13+
- source: manual
14+
manual: 1

0 commit comments

Comments
 (0)