diff options
author | davidovski <david@davidovski.xyz> | 2022-06-15 20:02:02 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-15 20:02:02 +0100 |
commit | d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch) | |
tree | 684a17eebf446aa1adab1097616f1882c8d51568 /repo/libnfs | |
parent | d1fc3393cca72e8e432f827f7624e38734fad6dc (diff) |
added deps for qemu
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 +} |