file-scripts/PKGBUILD

45 lines
1.1 KiB
Bash
Raw Normal View History

2021-12-20 09:16:56 -08:00
# Maintainer: Eric Torres <erictorres4@protonmail.com>
pkgname=file-scripts
pkgver=1.1.4
pkgrel=2
2021-12-20 09:16:56 -08:00
pkgdesc="Various scripts for performing file-related operations such as editing and deleting."
arch=(any)
license=(GPL3)
#depends=(bash fd fzf mlocate python python-termcolor)
depends=(bash fd fzf)
makedepends=(git)
#makedepends=(git python-setuptools python-sphinx)
#checkdepends=(python-hypothesis python-pytest)
2022-04-15 22:11:20 -07:00
source=("${pkgname}::git+file:///home/etorres/Projects/file-scripts")
2022-04-15 21:50:55 -07:00
install=$pkgname.install
2022-03-23 17:28:09 -07:00
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}/bash"
bash version.sh
2022-03-23 17:28:09 -07:00
}
2021-12-20 09:16:56 -08:00
package() {
cd "${srcdir}/${pkgname}/bash"
2021-12-20 09:16:56 -08:00
for script in bin/*; do
2022-09-28 21:57:39 -07:00
install -Dm755 "$script" "$pkgdir/usr/bin/$(basename -s '.sh' "$script")"
done
for libfile in *.sh; do
2022-09-28 21:57:39 -07:00
install -Dm644 "$libfile" "$pkgdir/usr/share/file-scripts/${libfile##*/}"
done
#python setup.py build
#python setup.py install --root="$pkgdir/" --optimize=1
2021-12-20 09:16:56 -08:00
# Install zsh completions
for completion in zsh; do
install -m644 "${completion}" "${pkgdir}/usr/share/zsh/site-functions/${plugin##*.}"
done
2021-12-20 09:16:56 -08:00
}
2021-12-20 22:44:22 -08:00
#check() {
# pytest
#}