mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-06 09:03:00 +00:00
* toml is getting removed from distributions due to being generally unmaintained and not support the lastest TOML standard. * For parsing use tomllib which is included in python3.11 and tomli for earlier interpeter versions. * For writing use tomli-w. tomli-w.dump() expects bytes-like objects so work around it to keep compatability and minimize changes elsewhere. Signed-off-by: Alfred Wingate <parona@protonmail.com>
31 lines
1.2 KiB
Bash
Vendored
31 lines
1.2 KiB
Bash
Vendored
# Maintainer: deadc0de6 <info@deadc0de.ch>
|
|
|
|
pkgname=dotdrop
|
|
pkgver=1.5.4
|
|
pkgrel=1
|
|
pkgdesc="Save your dotfiles once, deploy them everywhere "
|
|
arch=('any')
|
|
url="https://github.com/deadc0de6/dotdrop"
|
|
license=('GPL')
|
|
groups=()
|
|
depends=('python' 'python-setuptools' 'python-jinja' 'python-docopt' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
|
|
makedepends=('git')
|
|
source=("git+https://github.com/deadc0de6/dotdrop.git#tag=v${pkgver}")
|
|
md5sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "${pkgname}"
|
|
git describe --abbrev=0 --tags | sed 's/^v//g'
|
|
}
|
|
|
|
package() {
|
|
cd "${pkgname}"
|
|
python setup.py install --root="${pkgdir}/" --optimize=1
|
|
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"
|
|
install -Dm644 ${srcdir}/${pkgname}/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
install -Dm644 ${srcdir}/${pkgname}/README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
|
|
}
|
|
|