Skip to content

Commit 4c1fcd2

Browse files
parona-sourcedeadc0de6
authored andcommitted
Adjust PKGBUILD for PEP517 change
I do not use Arch so I haven't tested these. Signed-off-by: Alfred Wingate <parona@protonmail.com>
1 parent d98d5c2 commit 4c1fcd2

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

packages/arch-dotdrop-git/PKGBUILD

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ arch=('any')
77
url="https://github.com/deadc0de6/dotdrop"
88
license=('GPL')
99
groups=()
10-
depends=('python' 'python-setuptools' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
11-
makedepends=('git')
10+
depends=('python' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
11+
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools')
1212
provides=(dotdrop)
1313
conflicts=(dotdrop)
1414
source=("git+https://github.com/deadc0de6/dotdrop.git")
@@ -19,9 +19,15 @@ pkgver() {
1919
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
2020
}
2121

22+
build() {
23+
cd "${_pkgname}"
24+
python -m build --wheel --no-isolation
25+
}
26+
2227
package() {
2328
cd "${_pkgname}"
24-
python setup.py install --root="${pkgdir}/" --optimize=1
29+
python -m installer --destdir="${pkgdir}" dist/*.whl
30+
2531
install -Dm644 ${srcdir}/${_pkgname}/completion/dotdrop-completion.bash "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}"
2632
install -Dm644 ${srcdir}/${_pkgname}/completion/_dotdrop-completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}"
2733
install -Dm644 ${srcdir}/${_pkgname}/completion/dotdrop.fish "${pkgdir}/usr/share/fish/completions/${_pkgname}.fish"

packages/arch-dotdrop/PKGBUILD

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ arch=('any')
66
url="https://github.com/deadc0de6/dotdrop"
77
license=('GPL')
88
groups=()
9-
depends=('python' 'python-setuptools' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
10-
makedepends=('git')
9+
depends=('python' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
10+
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools')
1111
source=("git+https://github.com/deadc0de6/dotdrop.git#tag=v${pkgver}")
1212
md5sums=('SKIP')
1313

@@ -16,9 +16,15 @@ pkgver() {
1616
git describe --abbrev=0 --tags | sed 's/^v//g'
1717
}
1818

19+
build() {
20+
cd "${pkgname}"
21+
python -m build --wheel --no-isolation
22+
}
23+
1924
package() {
2025
cd "${pkgname}"
21-
python setup.py install --root="${pkgdir}/" --optimize=1
26+
python -m installer --destdir="${pkgdir}" dist/*.whl
27+
2228
install -Dm644 ${srcdir}/${pkgname}/completion/dotdrop-completion.bash "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
2329
install -Dm644 ${srcdir}/${pkgname}/completion/_dotdrop-completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
2430
install -Dm644 ${srcdir}/${pkgname}/completion/dotdrop.fish "${pkgdir}/usr/share/fish/completions/${pkgname}.fish"

0 commit comments

Comments
 (0)