aboutsummaryrefslogtreecommitdiffstats
path: root/community/libselinux/APKBUILD
blob: 4a3d0d4d3de3b4a6602ba13973cb7ad83da9264b (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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"
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
source="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/libselinux-$pkgver.tar.gz
	musl.patch
	"

[ "$CARCH" = "riscv64" ] && options="textrels"

build() {
	make PCRE_LDLIBS="-lpcre -lfts"
}

package() {
	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
e5de8fb698222cdbec7a9a7af62419ed567d896a33caafc1b1c9c4741ae1e1d20be536b94a4b49393329b4a6526eb6435178aac689008ec665e12cbfe6eb332f  musl.patch"