file-scripts/PKGBUILD

34 lines
802 B
Bash
Raw Normal View History

2021-12-20 09:16:56 -08:00
# Maintainer: Eric Torres <erictorres4@protonmail.com>
pkgname=file-scripts
pkgver=0.9.2
2021-12-20 09:16:56 -08:00
pkgrel=0
pkgdesc="Various scripts for performing file-related operations such as editing and deleting."
arch=(any)
license=(GPL3)
depends=(fd fzf mlocate python)
2021-12-20 09:16:56 -08:00
makedepends=(git)
source=("${pkgname}::git+file:///home/etorres/Projects/file-scripts")
sha256sums=('SKIP')
sha512sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname}"
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
package() {
cd "${srcdir}/${pkgname}"
2021-12-20 22:44:22 -08:00
python setup.py build
python setup.py --root="$pkgdir" install
2021-12-20 09:16:56 -08:00
## Install zsh completions
2021-12-21 00:23:53 -08:00
#for completion in zsh; do
2021-12-20 09:16:56 -08:00
# install -m644 "${completion}" "${pkgdir}/usr/share/zsh/site-functions/${plugin##*.}"
#done
}
2021-12-20 22:44:22 -08:00
check() {
pytest
}