Update PKGBUILD for bash rewrite of project
This commit is contained in:
parent
eaf1a76571
commit
5f1c026a19
33
PKGBUILD
33
PKGBUILD
@ -1,27 +1,36 @@
|
|||||||
# Maintainer: Eric Torres <erictorres4@protonmail.com>
|
# Maintainer: Eric Torres <erictorres4@protonmail.com>
|
||||||
pkgname=file-scripts
|
pkgname=file-scripts
|
||||||
pkgver=1.1.3
|
pkgver=1.1.4
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Various scripts for performing file-related operations such as editing and deleting."
|
pkgdesc="Various scripts for performing file-related operations such as editing and deleting."
|
||||||
arch=(any)
|
arch=(any)
|
||||||
license=(GPL3)
|
license=(GPL3)
|
||||||
depends=(fd fzf mlocate python python-termcolor)
|
depends=(bash fd fzf mlocate python python-termcolor)
|
||||||
makedepends=(git python-setuptools python-sphinx)
|
makedepends=(git)
|
||||||
checkdepends=(python-hypothesis python-pytest)
|
#makedepends=(git python-setuptools python-sphinx)
|
||||||
|
#checkdepends=(python-hypothesis python-pytest)
|
||||||
source=("${pkgname}::git+file:///home/etorres/Projects/file-scripts")
|
source=("${pkgname}::git+file:///home/etorres/Projects/file-scripts")
|
||||||
install=$pkgname.install
|
install=$pkgname.install
|
||||||
sha256sums=('SKIP')
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "${srcdir}/${pkgname}"
|
cd "${srcdir}/${pkgname}/bash"
|
||||||
python setup.py --version
|
bash version.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${pkgname}"
|
cd "${srcdir}/${pkgname}/bash"
|
||||||
|
|
||||||
python setup.py build
|
for script in bin/*; do
|
||||||
python setup.py install --root="$pkgdir/" --optimize=1
|
install -Dm755 "$script" "$pkgdir/usr/bin/${script%.*}"
|
||||||
|
done
|
||||||
|
|
||||||
|
for libfile in *.sh; do
|
||||||
|
install -Dm644 "$libfile" "$pkgdir/usr/share/file-scripts/$libfile"
|
||||||
|
done
|
||||||
|
|
||||||
|
#python setup.py build
|
||||||
|
#python setup.py install --root="$pkgdir/" --optimize=1
|
||||||
|
|
||||||
## Install zsh completions
|
## Install zsh completions
|
||||||
#for completion in zsh; do
|
#for completion in zsh; do
|
||||||
@ -29,6 +38,6 @@ package() {
|
|||||||
#done
|
#done
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
#check() {
|
||||||
pytest
|
# pytest
|
||||||
}
|
#}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user