file-scripts/PKGBUILD

34 lines
836 B
Bash
Raw Normal View History

2021-12-20 09:16:56 -08:00
# Maintainer: Eric Torres <erictorres4@protonmail.com>
pkgname=file-scripts
2022-03-31 12:45:13 -07:00
pkgver=1.1.1
2022-03-23 17:28:09 -07:00
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-03-23 17:28:09 -07:00
depends=(fd fzf mlocate python python-termcolor)
makedepends=(python-setuptools python-sphinx)
checkdepends=(python-hypothesis python-pytest)
2021-12-29 22:51:13 -08:00
source=("${pkgname}-${pkgver}.tar.gz")
2022-03-23 17:28:09 -07:00
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}-${pkgver}"
python setup.py --version
}
2021-12-20 09:16:56 -08:00
package() {
2021-12-29 22:51:13 -08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2021-12-20 09:16:56 -08:00
2021-12-20 22:44:22 -08:00
python setup.py build
2021-12-29 22:51:13 -08:00
python setup.py install --root="$pkgdir/" --optimize=1
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
}