file-scripts/PKGBUILD

29 lines
946 B
Bash
Raw Normal View History

2021-12-20 09:16:56 -08:00
# Maintainer: Eric Torres <erictorres4@protonmail.com>
pkgname=file-scripts
2022-01-10 11:24:49 -08:00
pkgver=1.0
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)
2021-12-29 22:51:13 -08:00
depends=(fd fzf mlocate 'python>=3.7' python-termcolor)
makedepends=(python-hypothesis python-pytest python-setuptools python-sphinx)
source=("${pkgname}-${pkgver}.tar.gz")
2022-01-10 12:08:09 -08:00
sha256sums=('89ef58e7b7ff62914570e8747cf9a56d695e7da3e8d27655a6431c64b31d3eb6')
sha512sums=('f7eb56056f9de047b6a4e0531a44863e34e1beb3e620daf219807badefaed186036bc8d06dd102335915fe44ff06e1c132d159f38692043cf96d49649c4371b4')
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
}