2021-12-20 09:16:56 -08:00
|
|
|
# Maintainer: Eric Torres <erictorres4@protonmail.com>
|
|
|
|
pkgname=file-scripts
|
2022-09-30 23:53:26 -07:00
|
|
|
pkgver=1.2.0
|
|
|
|
pkgrel=1
|
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)
|
2022-09-28 22:14:24 -07:00
|
|
|
depends=(bash fd fzf mlocate python python-termcolor)
|
2022-09-28 21:37:59 -07:00
|
|
|
makedepends=(git)
|
2022-09-28 22:14:24 -07:00
|
|
|
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() {
|
2022-09-28 21:37:59 -07:00
|
|
|
cd "${srcdir}/${pkgname}/bash"
|
2022-09-28 22:14:24 -07:00
|
|
|
bash version.sh --print
|
2022-03-23 17:28:09 -07:00
|
|
|
}
|
2021-12-20 09:16:56 -08:00
|
|
|
|
|
|
|
package() {
|
2022-09-28 22:14:24 -07:00
|
|
|
cd "${srcdir}/${pkgname}"
|
2021-12-20 09:16:56 -08:00
|
|
|
|
2022-09-28 22:14:24 -07:00
|
|
|
for script in bash/bin/*; do
|
2022-09-28 21:57:39 -07:00
|
|
|
install -Dm755 "$script" "$pkgdir/usr/bin/$(basename -s '.sh' "$script")"
|
2022-09-28 21:37:59 -07:00
|
|
|
done
|
|
|
|
|
2022-09-28 22:14:24 -07:00
|
|
|
for libfile in bash/*.sh; do
|
|
|
|
install -Dm644 "$libfile" "$pkgdir/usr/share/file-scripts/$(basename "$libfile")"
|
2022-09-28 21:37:59 -07:00
|
|
|
done
|
|
|
|
|
2022-09-28 22:04:22 -07:00
|
|
|
# Install zsh completions
|
2022-09-28 22:14:24 -07:00
|
|
|
for completion in zsh/*; do
|
|
|
|
install -Dm644 "${completion}" "${pkgdir}/usr/share/zsh/site-functions/$(basename "$completion")"
|
2022-09-28 22:04:22 -07:00
|
|
|
done
|
2021-12-20 09:16:56 -08:00
|
|
|
}
|
2021-12-20 22:44:22 -08:00
|
|
|
|
2022-09-28 21:37:59 -07:00
|
|
|
#check() {
|
|
|
|
# pytest
|
|
|
|
#}
|