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




                                                                          
          

                          
                                                                              
         

         










                                         
                                                  


           


                                      
                                                                                                                                                                     
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Mira Ressel <aranea@aixah.de>
# Maintainer:
pkgname=libnftnl
pkgver=1.1.8
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="173d8a7b95eb964a9fbe7ffcb46541a6bae976b4d4f2a28fbf9b03bf3e50a29b1ea12faa49926d2d33bc088580a833fc6e15ff59a30bcfe67c91c524f00c778e  libnftnl-1.1.8.tar.bz2"