# Maintainer: Natanael Copa pkgname=libselinux pkgver=2.8 pkgrel=0 pkgdesc="SELinux library and simple utilities" url="https://github.com/SELinuxProject/selinux/wiki" arch="all" license="Public-Domain" # we need coreutils for ln --relative makedepends="pcre-dev linux-headers libsepol-dev fts-dev coreutils" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-utils" source="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/libselinux-$pkgver.tar.gz " builddir="$srcdir/libselinux-$pkgver" build() { cd "$builddir" make PCRE_LDLIBS="-lpcre -lfts" } package() { cd "$builddir" make DESTDIR="$pkgdir" install } utils() { pkgdesc="SELinux libselinux utilies" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/sbin "$subpkgdir"/usr/ } sha512sums="2f15d08888fbef9b0cf7bf01893b513edc6738974e2d0eab7e3f79cef9be79cf966742b0d2693b5d2ec7defddb5f4d6c6f6280be9d4158ed41f7a18d50b9f019 libselinux-2.8.tar.gz"