summaryrefslogblamecommitdiff
path: root/user/libnftnl/APKBUILD
blob: 80bdb5e5b93bb57d3374472e8b665426f3c6bc2c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                              
                                            
             
                
            




                                                                          
          

                          
                                                                              
         

         










                                         
                                                  


           


                                      
                                                                                                                                                                     
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Luis Ressel <aranea@aixah.de>
# Maintainer:
pkgname=libnftnl
pkgver=1.1.7
pkgrel=0
pkgdesc="Netfilter library providing interface to the nf_tables subsystem"
url="https://netfilter.org/projects/libnftnl"
arch="all"
license="GPL-2.0+"
depends=""
makedepends="libmnl-dev"
subpackages="$pkgname-dev"
source="https://netfilter.org/projects/libnftnl/files/$pkgname-$pkgver.tar.bz2
	"

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

check() {
	make -C tests check # builds test binaries
}

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

sha512sums="80fd09147b1e2c1533cc2c8347d35137ff94f14118d5ba7bf3c1fbd0a226f6443560d5eca03273129e091b3442f820cd24455e72e917a8b7fedc8f3c9b6dc407  libnftnl-1.1.7.tar.bz2"