blob: 6f5b5169946ed226f1ad0ba696107b0637ebb5ef (
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
|
# Maintainer: crab2313 <crab2313@gmail.com>
pkgname=libselinux-static
_pkgname=${pkgname%-static}
pkgver=3.6
pkgrel=1
pkgdesc="SELinux library (static version)"
arch=('x86_64')
url='https://github.com/SELinuxProject/selinux'
license=('custom')
groups=('selinux')
makedepends=()
depends=('libsepol>=3.1')
options=(staticlibs)
source=("https://github.com/SELinuxProject/selinux/releases/download/${pkgver}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('ba4e0ef34b270e7672a5e5f1b523fe2beab3a40bb33d9389f4ad3a8728f21b52')
build() {
cd "${_pkgname}-${pkgver}"
# Do not build deprecated rpm_execcon() interface. It is useless on Arch Linux anyway.
export DISABLE_RPM=y
export CFLAGS="${CFLAGS} -fno-semantic-interposition"
make -C src libselinux.a
}
package() {
cd "${_pkgname}-${pkgver}"
mkdir -p "${pkgdir}/usr/lib"
export DISABLE_RPM=y
install -Dm 0755 src/libselinux.a ${pkgdir}/usr/lib/
}
|