aboutsummaryrefslogtreecommitdiffstats
path: root/community/libnfs
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-02-26 22:26:27 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-02-26 23:33:40 -0300
commita12f8640f11114ba9b13a793162aa6b822b14916 (patch)
treef5fbe8845de72e9d2190040613a5b3fea2f44891 /community/libnfs
parent6c33d05ade4b7842f3f3c990c1bcaa06d30b657a (diff)
downloadaports-a12f8640f11114ba9b13a793162aa6b822b14916.tar.bz2
aports-a12f8640f11114ba9b13a793162aa6b822b14916.tar.xz
community/libnfs: move from main
Diffstat (limited to 'community/libnfs')
-rw-r--r--community/libnfs/APKBUILD44
-rw-r--r--community/libnfs/fix-includes.patch10
2 files changed, 54 insertions, 0 deletions
diff --git a/community/libnfs/APKBUILD b/community/libnfs/APKBUILD
new file mode 100644
index 0000000000..93d8ea5200
--- /dev/null
+++ b/community/libnfs/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libnfs
+pkgver=4.0.0
+pkgrel=0
+pkgdesc="Client library for accessing NFS shares"
+url="https://github.com/sahlberg/libnfs"
+arch="all"
+options="!check" # No test suite.
+license="LGPL-2.1-or-later"
+makedepends="autoconf automake m4 libtool"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://github.com/sahlberg/libnfs/archive/libnfs-$pkgver.tar.gz
+ fix-includes.patch"
+
+builddir="$srcdir"/libnfs-libnfs-$pkgver
+
+prepare() {
+ cd "$builddir"
+ default_prepare
+ ./bootstrap
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ rm -f "$pkgdir"/usr/lib/*.a
+}
+
+sha512sums="3d93d83d1909f24de304c0d47fa6240da7ecf43ce2488a242a58ddabe51d774caf813f5a90ae720a8edd251a765b30e88c0e5b6a13ecb254dfecdc98e30737fa libnfs-4.0.0.tar.gz
+14219122c6decf7e0e292a2962a7dbf9b2e408b87d8e22cf1761b742834e817652f3e4919dded00f645ccf79e035e03712e7072ec1cb23bfd24ad012e9183824 fix-includes.patch"
diff --git a/community/libnfs/fix-includes.patch b/community/libnfs/fix-includes.patch
new file mode 100644
index 0000000000..18a3657c64
--- /dev/null
+++ b/community/libnfs/fix-includes.patch
@@ -0,0 +1,10 @@
+--- a/include/nfsc/libnfs.h
++++ b/include/nfsc/libnfs.h
+@@ -24,6 +24,7 @@
+ #define _LIBNFS_H_
+
+ #include <stdint.h>
++#include <sys/time.h>
+ #if defined(__ANDROID__) || defined(AROS) \
+ || ( defined(__APPLE__) && defined(__MACH__) )
+ #include <sys/time.h>