mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 14:31:46 +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:
12
packages/arch-dotdrop-git/PKGBUILD
vendored
12
packages/arch-dotdrop-git/PKGBUILD
vendored
@@ -7,8 +7,8 @@ arch=('any')
|
||||
url="https://github.com/deadc0de6/dotdrop"
|
||||
license=('GPL')
|
||||
groups=()
|
||||
depends=('python' 'python-setuptools' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
|
||||
makedepends=('git')
|
||||
depends=('python' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
|
||||
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools')
|
||||
provides=(dotdrop)
|
||||
conflicts=(dotdrop)
|
||||
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'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${_pkgname}"
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
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.zsh "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}"
|
||||
install -Dm644 ${srcdir}/${_pkgname}/completion/dotdrop.fish "${pkgdir}/usr/share/fish/completions/${_pkgname}.fish"
|
||||
|
||||
12
packages/arch-dotdrop/PKGBUILD
vendored
12
packages/arch-dotdrop/PKGBUILD
vendored
@@ -6,8 +6,8 @@ arch=('any')
|
||||
url="https://github.com/deadc0de6/dotdrop"
|
||||
license=('GPL')
|
||||
groups=()
|
||||
depends=('python' 'python-setuptools' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
|
||||
makedepends=('git')
|
||||
depends=('python' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
|
||||
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools')
|
||||
source=("git+https://github.com/deadc0de6/dotdrop.git#tag=v${pkgver}")
|
||||
md5sums=('SKIP')
|
||||
|
||||
@@ -16,9 +16,15 @@ pkgver() {
|
||||
git describe --abbrev=0 --tags | sed 's/^v//g'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${pkgname}"
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
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.zsh "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
|
||||
install -Dm644 ${srcdir}/${pkgname}/completion/dotdrop.fish "${pkgdir}/usr/share/fish/completions/${pkgname}.fish"
|
||||
|
||||
Reference in New Issue
Block a user