blob: ff0cb1feb6c272dd22705a34b74719fe314cc484 (
plain)
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
36
37
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libselinux
pkgver=2.6
pkgrel=0
pkgdesc="SELinux library and simple utilities"
url="https://github.com/SELinuxProject/selinux/wiki"
arch="all"
license="Public Domain"
depends=""
depends_dev=""
makedepends="$depends_dev pcre-dev linux-headers libsepol-dev fts-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
source="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014/libselinux-$pkgver.tar.gz
symlink.patch
"
builddir="$srcdir/libselinux-$pkgver"
build() {
cd "$builddir"
make PCRE_LDFLAGS="-lpcre -lfts" || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
}
utils() {
pkgdesc="SELinux libselinux utilies"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/sbin "$subpkgdir"/usr/
}
sha512sums="906e1bf98c669862ab4f4e883d511db8d739a5763dc857c9405ad3cc6c70766a482853d07134698a1a98257a8632cc756d0549a7640c2915d051714f502ff14b libselinux-2.6.tar.gz
3a4cefdcdd32df7430b38c961e9e20cebf1bdea9fa2fdba9680269426c07b6766d0f4e2f6a0b938c5d6d90110f71729413fe00877740ef592f96c706657b21f1 symlink.patch"
|