aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libseccomp/APKBUILD
blob: c0d8d55c41726d94a578707ea261b54861f09708 (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:
pkgname=libseccomp
pkgver=2.2.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="068af8e1bc36fcd4b326ee83875ab4fd  libseccomp-2.2.1.tar.gz
f10f467d772d6fcfbfb05e3bbba450b4  remove-redefinition-prctl.patch"
sha256sums="0ba1789f54786c644af54cdffc9fd0dd0a8bb2b2ee153933f658855d2851a740  libseccomp-2.2.1.tar.gz
e133750447fcf0f84504d7dff4a915e357cfce9961576c57fe63df669f8dc58a  remove-redefinition-prctl.patch"
sha512sums="da2347349ed723eadd096e088f78af82373d03ad383222375be5810004ee47e5f17314c8919eb1f7f5f10797a2fe7d846a206b33803d22be7cbd66c8e9cd9fdf  libseccomp-2.2.1.tar.gz
f2c31dcafdc9a1ad78e32e76b75e1c1603071eaa3f979e1f2483b879a34ad07e0a4ef3642196a695415cdf81e1ed2bf325175872fb4e203ef9d0e668c287493f  remove-redefinition-prctl.patch"