aboutsummaryrefslogtreecommitdiffstats
path: root/community/libsepol/APKBUILD
blob: d0d471a2a2d3ea5bc4f92c54b2e610b796b0a132 (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
29
30
31
32
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libsepol
pkgver=2.8
pkgrel=0
pkgdesc="SELinux binary policy manipulation library"
url="https://github.com/SELinuxProject/selinux/wiki"
arch="all"
license="LGPL-2.0-or-later"
depends_dev="bsd-compat-headers"
makedepends="$depends_dev flex-dev coreutils"
options="!check" # tests fail
subpackages="$pkgname-dev $pkgname-doc"
source="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/libsepol-$pkgver.tar.gz
	"
builddir="$srcdir/libsepol-$pkgver"

build() {
	cd "$builddir"
	make
}

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

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

sha512sums="dd065886819a265cd4f2751ac231a7baa5d7c7735844f3557d5c7e1feb06d4b4d03433d26ff6419b426caf90b69771ee743850fe45d36bc0201cadb86c62189c  libsepol-2.8.tar.gz"