summaryrefslogtreecommitdiff
path: root/repo/libbsd/libbsd.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/libbsd/libbsd.xibuild')
-rw-r--r--repo/libbsd/libbsd.xibuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/repo/libbsd/libbsd.xibuild b/repo/libbsd/libbsd.xibuild
new file mode 100644
index 0000000..18de571
--- /dev/null
+++ b/repo/libbsd/libbsd.xibuild
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+NAME="libbsd"
+DESC="commonly-used BSD functions not implemented by all libcs"
+
+MAKEDEPS="libmd"
+
+PKG_VER=0.11.6
+SOURCE="https://libbsd.freedesktop.org/releases/libbsd-$PKG_VER.tar.xz"
+
+ADDITIONAL="
+disable-fpurge-test.patch
+"
+
+prepare() {
+ apply_patches
+
+ ./autogen
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+}