aboutsummaryrefslogblamecommitdiffstats
path: root/main/libnetfilter_cthelper/APKBUILD
blob: d05fee67843fa71212fd2ffd5d55577c8d3e3c89 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                                                            
                                     








                                                                        



                                 














                                                                               
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnetfilter_cthelper
pkgver=1.0.0
pkgrel=0
pkgdesc="A Netfilter netlink library for connection tracking helpers"
url="http://www.netfilter.org/projects/libnetfilter_cthelper/index.html"
arch="all"
license="GPLv2"
depends=""
makedepends="libmnl-dev"
install=""
subpackages="$pkgname-dev"
source="http://www.netfilter.org/projects/libnetfilter_cthelper/files/libnetfilter_cthelper-$pkgver.tar.bz2"

_builddir="$srcdir"/libnetfilter_cthelper-$pkgver
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	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
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="b2efab1a3a198a5add448960ba011acd  libnetfilter_cthelper-1.0.0.tar.bz2"