Do not ignore PKGBUILD
This commit is contained in:
parent
383b6f80fe
commit
a2ec1729b9
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,4 @@
|
|||||||
__pycache__
|
__pycache__
|
||||||
packaging-scripts
|
packaging-scripts
|
||||||
PKGBUILD
|
|
||||||
*.pkg.tar.xz
|
*.pkg.tar.xz
|
||||||
*.pkg.tar.xz.sig
|
*.pkg.tar.xz.sig
|
||||||
|
36
PKGBUILD
Normal file
36
PKGBUILD
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# Maintainer: Eric Torres <erictorres4@protonmail.com>
|
||||||
|
pkgname=packaging-scripts
|
||||||
|
pkgver=1.0.2
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="A set of helper scripts for handling Arch Linux packages"
|
||||||
|
arch=('any')
|
||||||
|
license=('GPL3')
|
||||||
|
groups=('pacman-helpers')
|
||||||
|
depends=('pacman' 'python')
|
||||||
|
makedepends=('git' 'python-setuptools')
|
||||||
|
optdepends=('fzf: for the fqo script'
|
||||||
|
'mlocate: for the fqo script')
|
||||||
|
source=("git+file:///home/etorres/Projects/packaging-scripts")
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
sha512sums=('SKIP')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$srcdir/$pkgname"
|
||||||
|
python setup.py build
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/${pkgname}"
|
||||||
|
|
||||||
|
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
|
||||||
|
|
||||||
|
# install README
|
||||||
|
install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
|
||||||
|
|
||||||
|
# install zsh completions
|
||||||
|
install -d "${pkgdir}/usr/share/zsh/site-functions"
|
||||||
|
for completion in packaging_scripts/zsh-completions/*; do
|
||||||
|
install -m644 "${completion}"\
|
||||||
|
"${pkgdir}/usr/share/zsh/site-functions/${completion##*/*}"
|
||||||
|
done
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user