Skip to content

Commit efa78f8

Browse files
committed
[python-amaranth] use git to fetch source so that setuptools-scm can be happy
1 parent 6d4f266 commit efa78f8

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

archlinuxcn/python-amaranth/PKGBUILD

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,25 @@ optdepends=('python-paramiko: for remote builds')
1616
provides=("python-nmigen=$pkgver" "python-$_pkgname=$pkgver")
1717
conflicts=('python-nmigen' "python-nmigen-git" "python-$_pkgname-git")
1818
replaces=('python-nmigen')
19-
source=(
20-
"${pkgname}-${pkgver}.tar.gz::https://github.com/amaranth-lang/amaranth/archive/refs/tags/v${pkgver}.tar.gz"
21-
)
22-
sha512sums=('78ed434e382b7ce66104b817ebf38e2650aa3e87c6b611c4d8d5bf4639b28f1de72c6508a18b517b7a82238f1a70c7c4005c5623bcbc038eaf4b5141473a412e')
19+
source=("git+https://github.com/amaranth-lang/amaranth.git#tag=v${pkgver}")
20+
sha512sums=('3757837dfb6dea0304e8aadeede09fba0df29058b74ac04fa96d2fd66121602f6c65c49e227135cb2c83037b76bb489b25b3ecb81e288821b96c18d4a4d21b29')
2321

2422
prepare() {
25-
cd "${_pkgname}-${pkgver}"
23+
cd "${_pkgname}"
2624

2725
sed -i -e "s/pdm\\.backend\\._vendor\\.//" pdm_build.py
2826
sed -i -e 's/"pdm-backend~=2.3.0",//' pyproject.toml
2927
sed -i -e 's/"pdm-backend~=2.3.0"//' pyproject.toml
3028
}
3129

3230
build() {
33-
cd "${_pkgname}-${pkgver}"
31+
cd "${_pkgname}"
3432

3533
python -m build --wheel --no-isolation
3634
}
3735

3836
package() {
39-
cd "${_pkgname}-${pkgver}"
37+
cd "${_pkgname}"
4038

4139
python -m installer --destdir="$pkgdir" dist/*.whl
4240

0 commit comments

Comments
 (0)