mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
35 lines
928 B
Text
35 lines
928 B
Text
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
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
|
|
"
|
|
|
|
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="
|
|
4e13261a5821018a5f3cdce676f180bb62e5bc225981ca8a498ece0d1c88d9ba8eaa0ce4099dd0849309a8a7c5a9a0953df841a9922f2c284e5a109e5d937ba7 libselinux-3.5.tar.gz
|
|
"
|