build: PKGBUILD for dev purpose only.

This commit is contained in:
Alexandre Pujol 2022-10-06 20:56:41 +01:00
parent 28bb9b546f
commit 75c6a32ee1
Failed to generate hash of commit

View file

@ -1,6 +1,9 @@
# Maintainer: Alexandre Pujol <alexandre@pujol.io> # Maintainer: Alexandre Pujol <alexandre@pujol.io>
# shellcheck disable=SC2034,SC2154,SC2164 # shellcheck disable=SC2034,SC2154,SC2164
# Warning: for development only, use https://aur.archlinux.org/packages/apparmor.d-git
# for production use.
pkgname=apparmor.d pkgname=apparmor.d
pkgver=0.001 pkgver=0.001
pkgrel=1 pkgrel=1
@ -10,6 +13,7 @@ url="https://github.com/roddhjav/$pkgname"
license=('GPL2') license=('GPL2')
depends=('apparmor') depends=('apparmor')
makedepends=('go' 'git' 'rsync' 'lsb-release') makedepends=('go' 'git' 'rsync' 'lsb-release')
conflicts=("$pkgname-git")
pkgver() { pkgver() {
cd "$srcdir/$pkgname" cd "$srcdir/$pkgname"
@ -17,7 +21,7 @@ pkgver() {
} }
prepare() { prepare() {
git clone "$startdir" "$srcdir/$pkgname" rsync -a --delete "$startdir" "$srcdir"
cd "$srcdir/$pkgname" cd "$srcdir/$pkgname"
./configure --complain ./configure --complain