File tree 1 file changed +5
-7
lines changed
archlinuxcn/python-amaranth 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -16,27 +16,25 @@ optdepends=('python-paramiko: for remote builds')
16
16
provides=(" python-nmigen=$pkgver " " python-$_pkgname =$pkgver " )
17
17
conflicts=(' python-nmigen' " python-nmigen-git" " python-$_pkgname -git" )
18
18
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' )
23
21
24
22
prepare () {
25
- cd " ${_pkgname} - ${pkgver} "
23
+ cd " ${_pkgname} "
26
24
27
25
sed -i -e " s/pdm\\ .backend\\ ._vendor\\ .//" pdm_build.py
28
26
sed -i -e ' s/"pdm-backend~=2.3.0",//' pyproject.toml
29
27
sed -i -e ' s/"pdm-backend~=2.3.0"//' pyproject.toml
30
28
}
31
29
32
30
build () {
33
- cd " ${_pkgname} - ${pkgver} "
31
+ cd " ${_pkgname} "
34
32
35
33
python -m build --wheel --no-isolation
36
34
}
37
35
38
36
package () {
39
- cd " ${_pkgname} - ${pkgver} "
37
+ cd " ${_pkgname} "
40
38
41
39
python -m installer --destdir=" $pkgdir " dist/* .whl
42
40
You can’t perform that action at this time.
0 commit comments