2019-02-25 10:22:18 -08:00
|
|
|
# Maintainer: Eric Torres <erictorres4@protonmail.com>
|
|
|
|
pkgname=packaging-scripts
|
2019-03-10 21:25:56 -07:00
|
|
|
pkgver=1.1.1
|
2019-02-25 10:22:18 -08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A set of helper scripts for handling Arch Linux packages"
|
|
|
|
arch=('any')
|
2019-03-10 20:30:04 -07:00
|
|
|
license=('MIT')
|
2019-02-25 10:22:18 -08:00
|
|
|
groups=('pacman-helpers')
|
|
|
|
depends=('pacman' 'python')
|
|
|
|
makedepends=('git' 'python-setuptools')
|
|
|
|
optdepends=('fzf: for the fqo script'
|
|
|
|
'mlocate: for the fqo script')
|
2019-03-10 21:25:56 -07:00
|
|
|
backup=(etc/apparmor.d/usr.bin.{addpkg,delpkg})
|
2019-02-25 10:22:18 -08:00
|
|
|
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"
|
|
|
|
|
2019-03-10 21:25:56 -07:00
|
|
|
# install AppArmor profiles
|
|
|
|
for profile in misc/apparmor/*; do
|
|
|
|
install -Dm644 "${profile}" "${pkgdir}/etc/apparmor.d/${profile##*/}"
|
|
|
|
done
|
|
|
|
|
2019-02-25 10:22:18 -08:00
|
|
|
# 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
|
|
|
|
}
|