aboutsummaryrefslogtreecommitdiffstats
path: root/main/xtables-addons/APKBUILD
blob: ca9fd99bf28b72a5c96ce539ec775d66c6d958c8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xtables-addons
pkgver=3.2
pkgrel=0
pkgdesc="Netfilter userspace extensions for iptables"
url="http://xtables-addons.sourceforge.net/"
arch="all"
license="GPL"
depends=
makedepends="iptables-dev bash coreutils"
install=
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz"

options="!check" # Package has no test suite

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--without-kbuild \
		|| return 1

	make CC="${CC-gcc}" kbuilddir=
}

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

sha512sums="57b02aec83765ad407a813cc8bb5ba471739da09ee8177094592833d1eaa54300ce06b326e9897cb80f563bdaec24b33d42c2cdb72f8a0ec8f86b085fcc6494d  xtables-addons-3.2.tar.xz"