aboutsummaryrefslogtreecommitdiffstats
path: root/main/libnfs/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-01-07 23:05:45 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2013-01-07 23:12:43 +0100
commite53728423351a0f40e3e699537eaabbda05b77a9 (patch)
tree53d2d09e911667667cb47dd0793a899ca0044122 /main/libnfs/APKBUILD
parent2894f0386e7df0287af18a3bf81771616a293347 (diff)
downloadaports-e53728423351a0f40e3e699537eaabbda05b77a9.tar.bz2
aports-e53728423351a0f40e3e699537eaabbda05b77a9.tar.xz
main/libnfs: move to main
Diffstat (limited to 'main/libnfs/APKBUILD')
-rw-r--r--main/libnfs/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/main/libnfs/APKBUILD b/main/libnfs/APKBUILD
new file mode 100644
index 0000000000..7aac68810f
--- /dev/null
+++ b/main/libnfs/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=libnfs
+pkgver=1.5.0
+pkgrel=0
+pkgdesc="client library for accessing NFS shares"
+url="https://github.com/sahlberg/libnfs"
+arch="all"
+license="GPL"
+depends=""
+depends_dev=""
+makedepends="$depends_dev autoconf automake m4 libtool"
+install=""
+subpackages="$pkgname-dev"
+source="http://github.com/downloads/sahlberg/libnfs/libnfs-$pkgver.tar.gz
+ remove-rpcgen.patch"
+
+_builddir="$srcdir"/libnfs-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./bootstrap || return 1
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="58d88d7a7cfb9455a3fb044d158cef55 libnfs-1.5.0.tar.gz
+6d4c2989fc576577ffe262cb3cb27435 remove-rpcgen.patch"