# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=libbsd pkgver=0.11.7 pkgrel=3 pkgdesc="commonly-used BSD functions not implemented by all libcs" url="https://libbsd.freedesktop.org/" arch="all" license="BSD-3-Clause" depends="musl" depends_dev="bsd-compat-headers linux-headers libmd-dev libbsd=$pkgver-r$pkgrel" # libbsd.so is a GNU ld script and not symlink makedepends_build="autoconf automake libtool" makedepends_host="$depends_dev" subpackages="$pkgname-static $pkgname-dev $pkgname-doc" source="https://libbsd.freedesktop.org/releases/libbsd-$pkgver.tar.xz lfs64.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 } dev() { default_dev amove usr/lib/libbsd.so } sha512sums=" 51fda4724f41dd8a4628afd58c21236a7588d9045e337e06eeabf83805a9aaaa53705441ca901ad11f1c65f18e881523bdc97721a7d3d6a5cced27f2450d09a2 libbsd-0.11.7.tar.xz 4bf1c9ce7fd06bc9304010dc4c4a84ba64e4f85c1b65b4e6b4886016ac0d8412f1f4073a67c11d970f0e78ebe38f0969c86b6e68f0c39390870b6e77320f76be lfs64.patch "