aboutsummaryrefslogtreecommitdiffstats
path: root/community/libgssglue/APKBUILD
blob: c5ae9a9afd0d22c168364f8de99506a887417c34 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgssglue
pkgver=0.4
pkgrel=1
pkgdesc="exports a gssapi interface which calls other random gssapi libraries"
url="http://www.citi.umich.edu/projects/nfsv4/linux/"
arch="all"
license="BSD-3-Clause"
# heimdal-{dev,libs} is needed for gssapi_mech.conf
depends="heimdal-dev heimdal-libs"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.citi.umich.edu/projects/nfsv4/linux/libgssglue/libgssglue-$pkgver.tar.gz
	gssapi_mech.conf"

prepare() {
	default_prepare
	update_config_sub
}

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

package() {
	make DESTDIR="$pkgdir/" install

	install -Dm644 "$srcdir"/gssapi_mech.conf \
		"$pkgdir/"etc/gssapi_mech.conf
	install -Dm644 COPYING $pkgdir/usr/share/licenses/libgssglue/COPYING
}

sha512sums="25d514c08320e42851ff153d7691267a8454f205492faf942f566aa30c1ac1c83bd095732a1a0fcc010ba3a5d48b4c95a196ad05bc821598cc1fc3a2c4960d29  libgssglue-0.4.tar.gz
e97d7256ab05cd33178988d28139f0ba80797ac828dff3f7b0ab4cf6c04d016de1f731b8fe114f18319c6a07780a9701cd84a4e9fd5db6480c8d1df129f2402e  gssapi_mech.conf"