diff options
Diffstat (limited to 'repo/libnfs')
-rw-r--r-- | repo/libnfs/fix-includes.patch | 10 | ||||
-rw-r--r-- | repo/libnfs/libnfs.xibuild | 33 |
2 files changed, 43 insertions, 0 deletions
diff --git a/repo/libnfs/fix-includes.patch b/repo/libnfs/fix-includes.patch new file mode 100644 index 0000000..6d599b4 --- /dev/null +++ b/repo/libnfs/fix-includes.patch @@ -0,0 +1,10 @@ +--- a/include/nfsc/libnfs.h ++++ b/include/nfsc/libnfs.h +@@ -28,6 +28,7 @@ + #endif + + #include <stdint.h> ++#include <sys/time.h> + #if defined(__ANDROID__) || defined(AROS) || defined(__PPU__) \ + || ( defined(__APPLE__) && defined(__MACH__) ) + #include <sys/time.h> diff --git a/repo/libnfs/libnfs.xibuild b/repo/libnfs/libnfs.xibuild new file mode 100644 index 0000000..582fc31 --- /dev/null +++ b/repo/libnfs/libnfs.xibuild @@ -0,0 +1,33 @@ +#!/bin/sh + +NAME="libnfs" +DESC="Client library for accessing NFS shares" + +MAKEDEPS="autoconf automake m4 libtool" + +PKG_VER=5.0.1 +SOURCE="https://github.com/sahlberg/libnfs/archive/libnfs-$PKG_VER.tar.gz" + +ADDITIONAL=" +fix-includes.patch +" + +prepare() { + apply_patches + ./bootstrap +} + +build() { + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var + make +} + +package() { + make DESTDIR="$PKG_DEST" install + rm -f "$PKG_DEST"/usr/lib/*.a +} |