aboutsummaryrefslogtreecommitdiffstats
path: root/main/libtirpc/APKBUILD
blob: 54470bc716a884e20fbf827fedaf863212cf5538 (plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libtirpc
pkgver=0.3.2
pkgrel=1
pkgdesc="Transport Independent RPC library (SunRPC replacement)"
url="http://libtirpc.sourceforge.net/"
arch="all"
license="BSD"
depends=
depends_dev="krb5-dev bsd-compat-headers"
makedepends="$depends_dev autoconf automake libtool linux-headers"
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
	nis.h
	musl-fixes.patch
	"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver

	# uclibc/musl does not provide nis.h so provide our own
	mkdir src/rpcsvc
	cp "$srcdir"/nis.h src/rpcsvc/

	for i in $source; do
		case $i in
		*.patch)
			msg "Applying $i"
			patch -N -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
	autoreconf -vif || return 1
}

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconf=/etc \
		|| return 1
	make || return 1
}

package() {
	cd $srcdir/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="373d5ad46b1d19759ec763a9f0afcf4d  libtirpc-0.3.2.tar.bz2
821394d42c2a666d9b69452b4cc444b5  nis.h
80b104bc7c7ec96825120aaf38c44693  musl-fixes.patch"
sha256sums="2008a379f37f2c5d5a87a568b06707422cc3e4f5da305f7fb71f3f4c6d473ffc  libtirpc-0.3.2.tar.bz2
82657302b530628afd5866b76fc338956ca011d11e995cf6dea5d8b0493278eb  nis.h
c9790cfd760fb6ee96e18cc224055a96c2533ef22c1175ad9e019e7e8289b607  musl-fixes.patch"
sha512sums="f7a58826f0d873e3d67238ff723d6edcdcc00d64daee26c7ec1c967b237e555b0c73aa5baedab9573c0c0799ac4b652956f2bbe4aad247dfbeb7e3da0942a030  libtirpc-0.3.2.tar.bz2
83be3277aa7539d454273d7579827ff09e6b927e21de0af8a9290733b4bdfdcebfef26c9faffffd005a7631eae8beb4db9f60787f08db92fdd140686fe160c47  nis.h
8f9c434a7ed5cf08616ea9133bbb812d58be6964e616e3f4ee0e0794df9b04bb42399e55d17a81fe696d3d39738afccab2060a32128a92bbee8356b5e8a4ad12  musl-fixes.patch"