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

                                                        

                                             
                                       
                                                                     
                                  
 



                      
           
                       
 
                 


         



                                 


                                           




                                    
                  


           
                                      

 

                                                                                                                                                                  
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=libbsd
pkgver=0.11.3
pkgrel=0
pkgdesc="commonly-used BSD functions not implemented by all libcs"
url="https://libbsd.freedesktop.org/"
arch="all"
license="BSD"
depends="musl"
depends_dev="bsd-compat-headers linux-headers libmd-dev"
makedepends_build="autoconf automake libtool"
makedepends_host="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://libbsd.freedesktop.org/releases/libbsd-$pkgver.tar.xz
	disable-fpurge-test.patch"

# secfixes:
#   0.10.0-r0:
#     - CVE-2019-20367

prepare() {
	default_prepare

	./autogen
}

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

check() {
	make check
}

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

sha512sums="a7015ea1ffa3766b1a4690526a25231898ad8275149b31fb6801082450172249997c36165626d101ffce53b59767a46676eebc0806426922fe4e773a0376c1f5  libbsd-0.11.3.tar.xz
9bfd1a7b7a3fdae115c9a9719e882237aa56eecc2d19b4a5da02494f8447a4ed26414fc4f52dcaa406fdee602986eed50674c37b2415b8f50493d18be016b9a8  disable-fpurge-test.patch"