aboutsummaryrefslogtreecommitdiffstats
path: root/main/libseccomp/APKBUILD
blob: 91989608eebcffbcec87cf510b503cee4937274c (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libseccomp
pkgver=2.3.1
pkgrel=0
pkgdesc="An interface to the Linux Kernel's syscall filtering mechanismf"
url="https://github.com/seccomp/libseccomp"
arch="all"
license="LGPLv2.1"
depends=""
depends_dev=""
makedepends="$depends_dev linux-headers"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/seccomp/libseccomp/releases/download/v$pkgver/libseccomp-$pkgver.tar.gz
	remove-redefinition-prctl.patch"

_builddir="$srcdir"/libseccomp-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="e6f3e84921ef9c2e9188681963f0943f  libseccomp-2.3.1.tar.gz
f10f467d772d6fcfbfb05e3bbba450b4  remove-redefinition-prctl.patch"
sha256sums="ff5bdd2168790f1979e24eaa498f8606c2f2d96f08a8dc4006a2e88affa4562b  libseccomp-2.3.1.tar.gz
e133750447fcf0f84504d7dff4a915e357cfce9961576c57fe63df669f8dc58a  remove-redefinition-prctl.patch"
sha512sums="246b30e1c513d5e1fa35a47905d99036e276c1e6483a96f3e79ddca536a8c6f641c11bf324ed10c9c8d18fa27d73667c9c72fc7459f827d2883926769ac1cb45  libseccomp-2.3.1.tar.gz
f2c31dcafdc9a1ad78e32e76b75e1c1603071eaa3f979e1f2483b879a34ad07e0a4ef3642196a695415cdf81e1ed2bf325175872fb4e203ef9d0e668c287493f  remove-redefinition-prctl.patch"