aboutsummaryrefslogtreecommitdiffstats
path: root/testing/checkpolicy/APKBUILD
blob: 92b4cbd53205ffa572df91682e6c5be8fa0b4a5e (plain) (blame)
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
29
# Maintainer: Tycho Andersen <tycho@docker.com>
pkgname=checkpolicy
pkgver=2.8
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
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="67d88c049ef069a73bfc2663b0049d178dd43b0a3b5ca65716793d5f5bf992082aea4d4261d9d3fa0f9ab2dec3fc042c6f9917bceea40007332f9ac74f5bdb32  checkpolicy-2.8.tar.gz"