1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 16:49:42 +00:00

Adjust PKGBUILD for PEP517 change

I do not use Arch so I haven't tested these.

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate
2025-05-01 06:16:41 +03:00
committed by deadc0de
parent d98d5c265d
commit 4c1fcd2c40
2 changed files with 18 additions and 6 deletions

View File

@@ -7,8 +7,8 @@ arch=('any')
url="https://github.com/deadc0de6/dotdrop" url="https://github.com/deadc0de6/dotdrop"
license=('GPL') license=('GPL')
groups=() groups=()
depends=('python' 'python-setuptools' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro') depends=('python' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
makedepends=('git') makedepends=('git' 'python-build' 'python-installer' 'python-setuptools')
provides=(dotdrop) provides=(dotdrop)
conflicts=(dotdrop) conflicts=(dotdrop)
source=("git+https://github.com/deadc0de6/dotdrop.git") source=("git+https://github.com/deadc0de6/dotdrop.git")
@@ -19,9 +19,15 @@ pkgver() {
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g' git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
} }
build() {
cd "${_pkgname}"
python -m build --wheel --no-isolation
}
package() { package() {
cd "${_pkgname}" cd "${_pkgname}"
python setup.py install --root="${pkgdir}/" --optimize=1 python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 ${srcdir}/${_pkgname}/completion/dotdrop-completion.bash "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}" install -Dm644 ${srcdir}/${_pkgname}/completion/dotdrop-completion.bash "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}"
install -Dm644 ${srcdir}/${_pkgname}/completion/_dotdrop-completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}" install -Dm644 ${srcdir}/${_pkgname}/completion/_dotdrop-completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}"
install -Dm644 ${srcdir}/${_pkgname}/completion/dotdrop.fish "${pkgdir}/usr/share/fish/completions/${_pkgname}.fish" install -Dm644 ${srcdir}/${_pkgname}/completion/dotdrop.fish "${pkgdir}/usr/share/fish/completions/${_pkgname}.fish"

View File

@@ -6,8 +6,8 @@ arch=('any')
url="https://github.com/deadc0de6/dotdrop" url="https://github.com/deadc0de6/dotdrop"
license=('GPL') license=('GPL')
groups=() groups=()
depends=('python' 'python-setuptools' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro') depends=('python' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
makedepends=('git') makedepends=('git' 'python-build' 'python-installer' 'python-setuptools')
source=("git+https://github.com/deadc0de6/dotdrop.git#tag=v${pkgver}") source=("git+https://github.com/deadc0de6/dotdrop.git#tag=v${pkgver}")
md5sums=('SKIP') md5sums=('SKIP')
@@ -16,9 +16,15 @@ pkgver() {
git describe --abbrev=0 --tags | sed 's/^v//g' git describe --abbrev=0 --tags | sed 's/^v//g'
} }
build() {
cd "${pkgname}"
python -m build --wheel --no-isolation
}
package() { package() {
cd "${pkgname}" cd "${pkgname}"
python setup.py install --root="${pkgdir}/" --optimize=1 python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 ${srcdir}/${pkgname}/completion/dotdrop-completion.bash "${pkgdir}/usr/share/bash-completion/completions/${pkgname}" install -Dm644 ${srcdir}/${pkgname}/completion/dotdrop-completion.bash "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
install -Dm644 ${srcdir}/${pkgname}/completion/_dotdrop-completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}" install -Dm644 ${srcdir}/${pkgname}/completion/_dotdrop-completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
install -Dm644 ${srcdir}/${pkgname}/completion/dotdrop.fish "${pkgdir}/usr/share/fish/completions/${pkgname}.fish" install -Dm644 ${srcdir}/${pkgname}/completion/dotdrop.fish "${pkgdir}/usr/share/fish/completions/${pkgname}.fish"