# Maintainer: Natanael Copa pkgname=libselinux pkgver=3.5 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="pcre2-dev linux-headers libsepol-dev musl-fts-dev coreutils" subpackages="$pkgname-dev $pkgname-doc $pkgname-utils" source="https://github.com/SELinuxProject/selinux/releases/download/$pkgver/libselinux-$pkgver.tar.gz " build() { make FTS_LDLIBS="-lfts" } package() { make DESTDIR="$pkgdir" install } utils() { pkgdesc="SELinux libselinux utilies" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/sbin "$subpkgdir"/usr/ } sha512sums=" 4e13261a5821018a5f3cdce676f180bb62e5bc225981ca8a498ece0d1c88d9ba8eaa0ce4099dd0849309a8a7c5a9a0953df841a9922f2c284e5a109e5d937ba7 libselinux-3.5.tar.gz "