aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcr/APKBUILD
blob: c7c3eb32fbdd178a764ecae420eee723b2106bee (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.14.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
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="f2a620c5f6c0cd570b4e3bed287ed302  gcr-3.14.0.tar.xz"
sha256sums="2a2231147a01e2061f57fa9ca77557ff97bc6ceab028cee5528079f4b2fca63d  gcr-3.14.0.tar.xz"
sha512sums="2538b2575c0d325587f8b5423ac6f9c522a69b415977398dc5c4330ce1de896c966e541eb6e536e87e81013bb2dedea4d0ae8baabdab9318db5b97e0977671b8  gcr-3.14.0.tar.xz"