# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libsepol
pkgver=2.6
pkgrel=1
pkgdesc="SELinux binary policy manipulation library"
url="https://github.com/SELinuxProject/selinux/wiki"
arch="all"
license="LGPL-2.0-or-later"
depends=""
depends_dev="bsd-compat-headers"
makedepends="$depends_dev flex-dev coreutils"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014/libsepol-$pkgver.tar.gz
	"
builddir="$srcdir/libsepol-$pkgver"

build() {
	cd "$builddir"
	make || return 1
}

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

sha512sums="17d007857634e3d581fcc9bafcbb75674a06e382bb258c2c6b3656c141d71493699c42b78c8e1917c628476aeb8ead73bb86e8ccf43d7ce59aa0b7884bea132a  libsepol-2.6.tar.gz"
