file-scripts/PKGBUILD

29 lines
948 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 13:51:02 -08:00
pkgver=1.0.1
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 13:51:02 -08:00
sha256sums=('1124f0fabb45341a0daf6ca1f6fc9f7aa13bc921bd2fe25bd6e9744829c7fc96')
sha256sums=('9995199d336df02f37af4a5600dfb969a85c64ce54644d95151b4fc1c9b9338940724efa6a037ccc96e3086656cebe7315be7d85de7fb0212aace0a701e32467')
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
}