# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libsepol
pkgver=3.6
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://github.com/SELinuxProject/selinux/releases/download/$pkgver/libsepol-$pkgver.tar.gz
	"

build() {
	make
}

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

check() {
	make test
}

sha512sums="
35a42d2749fc4f71bc6b7488380714f56975564007128566f1c73e5c50bf81c17535b2cfda4583aacb4870aa2cd5885321c01523e415bda8b3326bfefb13d58e  libsepol-3.6.tar.gz
"
