aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcr/APKBUILD
blob: f8b11cba9ee1b6e4c2fd4c0faf1e2481fa98c41f (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.20.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="4314bf89eac293dd0a9d806593ff1b35  gcr-3.20.0.tar.xz"
sha256sums="90572c626d8a708225560c42b4421f7941315247fa1679d4ef569bde7f4bb379  gcr-3.20.0.tar.xz"
sha512sums="0acd0fb085a38507b1cc895ac773f91c6f4e14d2ea7e27b8e74c85ef78426597b6ea08ebee696452b0651939ec4a0d8a4a2523c41b3a8a0bd1b0d7b338b1d9c7  gcr-3.20.0.tar.xz"