aboutsummaryrefslogtreecommitdiffstats
path: root/main/libtirpc/APKBUILD
blob: bfc7c783301fa3d5da77c7f2e27ab15599b8c3c8 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libtirpc
pkgver=1.3.1
pkgrel=0
pkgdesc="Transport Independent RPC library (SunRPC replacement)"
url="https://sourceforge.net/projects/libtirpc"
arch="all"
license="BSD-3-Clause"
options="!check"
depends="$pkgname-conf"
depends_dev="krb5-dev bsd-compat-headers"
makedepends="$depends_dev autoconf automake libtool linux-headers"
subpackages="
	$pkgname-static
	$pkgname-dev
	$pkgname-doc
	$pkgname-dbg
	$pkgname-conf::noarch
	$pkgname-nokrb
	"
source="https://sourceforge.net/projects/libtirpc/files/libtirpc/$pkgver/libtirpc-$pkgver.tar.bz2
	soname-suffix.patch
	"

prepare() {
	default_prepare
	autoreconf -fi

	cp -r "$builddir" "$builddir-nokrb"
}

build() {
	_build SONAME_SUFFIX=''

	cd "$builddir-nokrb"
	_build --disable-gssapi SONAME_SUFFIX='-nokrb'
}

_build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconf=/etc \
		"$@"
	make
}

package() {
	make -C "$builddir-nokrb" install DESTDIR="$pkgdir"
	make install DESTDIR="$pkgdir"
}

conf() {
	pkgdesc="Configuration files for TI-RPC"

	amove etc/*
}

nokrb() {
	pkgdesc="$pkgdesc - without GSS-API/Kerberos"

	amove usr/lib/libtirpc-nokrb.*
}

sha512sums="131f746800ac7280cc3900597018fc8dbc8da50c14e29dbaccf36a6d110eded117351108c6b069eaac90d77cfec17014b08e9afddcf153fda2d780ba64260cbc  libtirpc-1.3.1.tar.bz2
8bd50cab1e34a88f4f82ae722bdd60839212173a0ac6ceef21dee4dceea37a9fa2953b8a40068918b3c0d95b476111f0d7f19830efd3e4bff1ec5e72a5f9fade  soname-suffix.patch"