summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b9b6a3e17e2fa58976a42433cb2834fcd0883c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: James Clarke <james@jamesdavidclarke.com>
pkgname=libappanvil-git
pkgver=r1357.c6ed7591
pkgrel=1
pkgdesc="A library for AppAnvil, a graphical user interface for the AppArmor security module"
arch=('x86_64')
url="https://github.com/jack-ullery/libappanvil"
license=('GPL')
makedepends=('git' 'pkgconf' 'cmake' 'clang' 'bison' 'flex')
source=("git+$url.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/libappanvil"
  echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/libappanvil"
  mkdir -p build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. 
}

package() {
  cd "$srcdir/libappanvil/build"
  make DESTDIR="$pkgdir/" install
}