# Maintainer: Tycho Andersen pkgname=checkpolicy pkgver=3.5 pkgrel=0 pkgdesc="SELinux policy checker" url="https://selinuxproject.org/" arch="all" license="GPL-2.0" makedepends="libsepol-dev bison flex-dev" subpackages="$pkgname-doc" source="https://github.com/SELinuxProject/selinux/archive/checkpolicy-$pkgver.tar.gz" builddir="$srcdir/selinux-checkpolicy-$pkgver/checkpolicy" build() { cd "$builddir" make CFLAGS="$CFLAGS -fcommon" } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums=" f259c2b39affdc2dacbd6c21dbe1ac5b7a9adf37dd8e4a641d6cfc378f4dcd224eec3a611ffa648a24f2f1158b2c3e2a3dda489f2c6c60e86b05cbf7faed8488 checkpolicy-3.5.tar.gz "