diff options
Diffstat (limited to 'user/libnfs')
-rw-r--r-- | user/libnfs/APKBUILD | 42 | ||||
-rw-r--r-- | user/libnfs/unconditional-sys-time.h.patch | 19 |
2 files changed, 61 insertions, 0 deletions
diff --git a/user/libnfs/APKBUILD b/user/libnfs/APKBUILD new file mode 100644 index 000000000..74aad6e14 --- /dev/null +++ b/user/libnfs/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=libnfs +pkgver=3.0.0 +pkgrel=0 +pkgdesc="Client library for accessing NFS shares" +url="https://github.com/sahlberg/libnfs" +arch="all" +license="LGPL-2.1+ AND BSD-2-Clause-FreeBSD AND GPL-3.0+" +makedepends="autoconf automake libtool" +subpackages="$pkgname-dev $pkgname-doc" +source="https://github.com/sahlberg/libnfs/archive/libnfs-$pkgver.tar.gz + unconditional-sys-time.h.patch + " +builddir="$srcdir"/libnfs-libnfs-$pkgver + +build() { + cd "$builddir" + ./bootstrap + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="9af31f8824431e9d28267c468dafc7cfc4062b1a280ca141036bc28a2ba544c4470a67955b5e5fbcc6c175435812381013b4c5d3d3d1a175d5efc7b802ae9b3b libnfs-3.0.0.tar.gz +39ff82b5371185172501babbb9b48c019408c21e3c9f8a17a2d8a70f7c35e648704873db368aceb23901a99f7f44d04495d6754c4dba03b5d2e593381ed16c53 unconditional-sys-time.h.patch" diff --git a/user/libnfs/unconditional-sys-time.h.patch b/user/libnfs/unconditional-sys-time.h.patch new file mode 100644 index 000000000..a8f37465f --- /dev/null +++ b/user/libnfs/unconditional-sys-time.h.patch @@ -0,0 +1,19 @@ +POSIX says `struct timeval` is only defined if <sys/time.h> is included. + +So include it. + +--- libnfs-libnfs-3.0.0/include/nfsc/libnfs.h.old 2018-06-23 22:53:52.000000000 +0000 ++++ libnfs-libnfs-3.0.0/include/nfsc/libnfs.h 2018-07-27 09:11:13.200000000 +0000 +@@ -24,12 +24,8 @@ + #define _LIBNFS_H_ + + #include <stdint.h> +-#if defined(__ANDROID__) || defined(AROS) \ +- || ( defined(__APPLE__) && defined(__MACH__) ) + #include <sys/time.h> +-#else + #include <time.h> +-#endif + + #ifdef __cplusplus + extern "C" { |