aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcr/APKBUILD
blob: 0c6f31f4e72da1cfa3b3589ecb69992eaf916556 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gcr
pkgver=3.18.0
pkgrel=0
pkgdesc="A library for bits of crypto UI and parsing"
url="http://live.gnome.org/CryptoGlue/"
arch="all"
license="LGPLv2+"
depends=""
depends_dev="glib-dev gtk+3.0-dev libgcrypt-dev p11-kit-dev"
makedepends="$depends_dev gobject-introspection-dev libxslt vala"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://download.gnome.org/sources/gcr/${pkgver%.*}/gcr-$pkgver.tar.xz"

_builddir="$srcdir"/gcr-$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"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-introspection \
		--enable-vala \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="b959bac99e17c9bb0990a15c9be11aed  gcr-3.18.0.tar.xz"
sha256sums="d4d16da5af55148a694055835ccd07ad34daf0ad03bdad929bf7cad15637ce00  gcr-3.18.0.tar.xz"
sha512sums="3733a462c23b0cf1d3579ea4b0b6eea9b5e3eb98e81e7c0e0364e540ec60a7a7bc567d1d159c674df280fb20c305cbaef796dffef73801ece4f4474352786e6b  gcr-3.18.0.tar.xz"