| 1 |
pkgname=dotdrop |
| 2 |
pkgver=1.5.4 |
| 3 |
pkgrel=1 |
| 4 |
pkgdesc="Save your dotfiles once, deploy them everywhere " |
| 5 |
arch=('any') |
| 6 |
url="https://github.com/deadc0de6/dotdrop" |
| 7 |
license=('GPL') |
| 8 |
groups=() |
| 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') |
| 11 |
source=("git+https://github.com/deadc0de6/dotdrop.git#tag=v${pkgver}") |
| 12 |
md5sums=('SKIP') |
| 13 |
|
| 14 |
pkgver() { |
| 15 |
cd "${pkgname}" |
| 16 |
git describe --abbrev=0 --tags | sed 's/^v//g' |
| 17 |
} |
| 18 |
|
| 19 |
build() { |
| 20 |
cd "${pkgname}" |
| 21 |
python -m build --wheel --no-isolation |
| 22 |
} |
| 23 |
|
| 24 |
package() { |
| 25 |
cd "${pkgname}" |
| 26 |
python -m installer --destdir="${pkgdir}" dist/*.whl |
| 27 |
|
| 28 |
install -Dm644 ${srcdir}/${pkgname}/completion/dotdrop-completion.bash "${pkgdir}/usr/share/bash-completion/completions/${pkgname}" |
| 29 |
install -Dm644 ${srcdir}/${pkgname}/completion/_dotdrop-completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}" |
| 30 |
install -Dm644 ${srcdir}/${pkgname}/completion/dotdrop.fish "${pkgdir}/usr/share/fish/completions/${pkgname}.fish" |
| 31 |
install -Dm644 ${srcdir}/${pkgname}/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" |
| 32 |
install -Dm644 ${srcdir}/${pkgname}/README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" |
| 33 |
} |
| 34 |
|