aboutsummaryrefslogtreecommitdiffstats
path: root/community/libselinux/APKBUILD
blob: e9f3af0f7527e9d928cd91c2f741ab992ba6444a (plain) (blame)
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
33
34
35
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libselinux
pkgver=3.2
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"
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
source="https://github.com/SELinuxProject/selinux/releases/download/$pkgver/libselinux-$pkgver.tar.gz
	"

if [ "$CARCH" = "riscv64" ]; then
	options="textrels"
fi

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="
18129ac0b9936e1f66021f1b311cf1c1e27a01e50cb70f08a3e1c642c5251e4538aec25a8427778569dfecf5333cf1fb84f1a59afdce8019328d0cff7e5833c5  libselinux-3.2.tar.gz
"