aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcr/APKBUILD
blob: 645723e8760830b9f7ead0350996bad0f1e7bade (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gcr
pkgver=3.15.92
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
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="c50a634592fb6c4dead8edfe971c48ca  gcr-3.15.92.tar.xz"
sha256sums="ebdb15ef5277b0e66863649a7bccde60f8e20d3ceed8be976878b46cf129e012  gcr-3.15.92.tar.xz"
sha512sums="cde0d86a11e15f14049904e8efd5b3a39d665374532d5dd261c3c4696bda784c76c1113b7bf46fdd8c9560bb306e36935cef0e01c20feeb0f1d8ec586eae63f4  gcr-3.15.92.tar.xz"