aboutsummaryrefslogblamecommitdiffstats
path: root/main/libnftnl/APKBUILD
blob: 31cacd41579bc30545f831ebaff8367a8836ecb2 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                              
                                              
                

            
                                                                          
                                             
          
                          
                                         


                                                                                      
                                                                               
 
                
                                          

    
         
                      



                                 

                                         
                                      
                               
            

 

                            
                  

 
           

                                      

 
            
                                                                                                                                                        
 
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=libnftnl
pkgver=1.2.1
pkgrel=0
pkgdesc="Netfilter library providing interface to the nf_tables subsystem"
url="https://netfilter.org/projects/libnftnl"
arch="all"
license="GPL-2.0-or-later"
makedepends="bash jansson-dev libmnl-dev"
provides="$pkgname-libs=$pkgver-r$pkgrel"  # for backward compatibility (Alpine <3.15)
replaces="$pkgname-libs"  # for backward compatibility (Alpine <3.15)
subpackages="$pkgname-dev"
source="https://netfilter.org/projects/libnftnl/files/libnftnl-$pkgver.tar.bz2"

case "$CARCH" in
	s390x) options="!check" ;; # FIXME
esac

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

check() {
	cd "$builddir"/tests
	make check
}

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

sha512sums="
cabe6896210c451d7917d1abde5e73a65594d53f011486f75dd7be5b4804c49d10f0e508675e091e1faf0363b82670b3f3a167a85db91d52742dc69445888b6a  libnftnl-1.2.1.tar.bz2
"