Add AppArmor profiles for addpkg and delpkg scripts

This commit is contained in:
Eric Torres
2019-03-10 21:25:56 -07:00
parent 5dca985412
commit d5a79a00ec
4 changed files with 42 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Maintainer: Eric Torres <erictorres4@protonmail.com>
pkgname=packaging-scripts
pkgver=1.1
pkgver=1.1.1
pkgrel=1
pkgdesc="A set of helper scripts for handling Arch Linux packages"
arch=('any')
@ -10,6 +10,7 @@ depends=('pacman' 'python')
makedepends=('git' 'python-setuptools')
optdepends=('fzf: for the fqo script'
'mlocate: for the fqo script')
backup=(etc/apparmor.d/usr.bin.{addpkg,delpkg})
source=("git+file:///home/etorres/Projects/packaging-scripts")
sha256sums=('SKIP')
sha512sums=('SKIP')
@ -27,6 +28,11 @@ package() {
# install README
install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
# install AppArmor profiles
for profile in misc/apparmor/*; do
install -Dm644 "${profile}" "${pkgdir}/etc/apparmor.d/${profile##*/}"
done
# install zsh completions
install -d "${pkgdir}/usr/share/zsh/site-functions"
for completion in packaging_scripts/zsh-completions/*; do