aboutsummaryrefslogtreecommitdiffstats
path: root/community/libnfs/APKBUILD
blob: d4f1fef07daefa0b0609a05ea34164c227c37714 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnfs
pkgver=5.0.1
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 $pkgname-tools"
source="https://github.com/sahlberg/libnfs/archive/libnfs-$pkgver.tar.gz
	fix-includes.patch"

builddir="$srcdir"/libnfs-libnfs-$pkgver

prepare() {
	default_prepare
	./bootstrap
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/*.a
}

tools() {
	pkgdesc="$pkgdesc (tools)"
	amove usr/bin
}

sha512sums="
71f2dcfa8945c1cb6402f5fca10b1f7a4720f7589807d6130eb55361f05ef4684f9cc9a177ece4e13d3847ac6606924115fac7b27749cecc2f5aca6fa9c63ebf  libnfs-5.0.1.tar.gz
99fb4a2d782201d151aede2018cd543496f67ef9bedccb9e6705add0b76f5d6942d3fa9852a05f4ed9956a6a341aaa85efe5b98dde858434dcefb357e72ef4a3  fix-includes.patch
"