aboutsummaryrefslogtreecommitdiffstats
path: root/main/xtables-addons/APKBUILD
blob: 62a31461567eacb0d3de31c92bbf9afe2a2cb5b6 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xtables-addons
pkgver=2.14
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="http://downloads.sourceforge.net/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz"

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="f3d49c53aa01fadc334906e580f16605849fe7be83637fa73d51b48ded0e77c368c544ad69fa97b53a6688eaa3ba63bab489c150a9e02205e8044cdd521f4752  xtables-addons-2.14.tar.xz"