2021-12-20 09:16:56 -08:00
|
|
|
# Maintainer: Eric Torres <erictorres4@protonmail.com>
|
|
|
|
pkgname=file-scripts
|
2021-12-25 21:00:26 -08:00
|
|
|
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 python)
|
|
|
|
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
|
|
|
|
}
|