From 686e4724036ffb18378e7ab817c6c348d2fb9d10 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 21 May 2015 21:29:21 +0200 Subject: [PATCH] libbsd: fix for musl. --- srcpkgs/libbsd/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/libbsd/template b/srcpkgs/libbsd/template index 081edf430a2..68d7708ab99 100644 --- a/srcpkgs/libbsd/template +++ b/srcpkgs/libbsd/template @@ -1,7 +1,7 @@ # Template file for 'libbsd' pkgname=libbsd version=0.7.0 -revision=1 +revision=2 build_style=gnu-configure short_desc="Provides useful functions commonly found on BSD system" maintainer="Juan RP " @@ -10,6 +10,11 @@ license="BSD" distfiles="http://libbsd.freedesktop.org/releases/libbsd-${version}.tar.xz" checksum=0f3b0e17e5c34c038126e0a04351b11e23c6101a7d0ce3beeab29bb6415c10bb +post_extract() { + sed -i '1i#include ' src/flopen.c src/nlist.c + sed -i '/#error/d' src/funopen.c + sed -i 's,,,g' src/nlist.c +} libbsd-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files"