aboutsummaryrefslogtreecommitdiffstats
path: root/main/libnetfilter_cthelper/APKBUILD
blob: 9c1ee5dbe50c06e1a0a693eab606f82540eb43ed (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnetfilter_cthelper
pkgver=1.0.0
pkgrel=2
pkgdesc="A Netfilter netlink library for connection tracking helpers"
url="https://www.netfilter.org/projects/libnetfilter_cthelper/"
arch="all"
license="GPL-2.0"
makedepends="linux-headers libmnl-dev"
subpackages="$pkgname-dev"
source="https://www.netfilter.org/projects/libnetfilter_cthelper/files/libnetfilter_cthelper-$pkgver.tar.bz2"

prepare() {
	default_prepare
	update_config_sub
}

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

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="f0372daee0edbf4c27ee80eadd4ce786a4b67b39c0b9d22e88bc9adcbdffd6676eb9df01b933ee64d2fcea9c05a9ca9070c94e907277d69acbd22ae9a3c74e45  libnetfilter_cthelper-1.0.0.tar.bz2"