aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/gcr/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/gcr/APKBUILD b/testing/gcr/APKBUILD
new file mode 100644
index 0000000000..fa4178600d
--- /dev/null
+++ b/testing/gcr/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer:
+pkgname=gcr
+pkgver=3.12.2
+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"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+source="http://download.gnome.org/sources/gcr/3.12/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 \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="8d4564abbbd6c4aa03a68a016c692d96 gcr-3.12.2.tar.xz"
+sha256sums="456e20615ab178aa92eeabdea64dcce535c10d5af189171d9375291a2447d21c gcr-3.12.2.tar.xz"
+sha512sums="7c74302a4485e6909e39721b0beeeeb5920d218c4e8ab5a1878be33457f2b6d59df165bf2e6b606efc8275b8e45dffe8d28ac202cf835f7f2483237258a4d6b2 gcr-3.12.2.tar.xz"