summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-04-25 13:14:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-04-25 13:14:23 +0000
commit93061bb8418d5a32c475a912290fde6523a62e3d (patch)
tree028e70517d6aa24b2610c8dc96de960f64dd947b /testing
parent7c5fd4097e344feb487d442cf15f5910396dd22c (diff)
downloadaports-93061bb8418d5a32c475a912290fde6523a62e3d.tar.bz2
aports-93061bb8418d5a32c475a912290fde6523a62e3d.tar.xz
testing/glib: test glib-2.32.1
Diffstat (limited to 'testing')
-rw-r--r--testing/glib/APKBUILD48
-rw-r--r--testing/glib/glib.trigger13
2 files changed, 61 insertions, 0 deletions
diff --git a/testing/glib/APKBUILD b/testing/glib/APKBUILD
new file mode 100644
index 000000000..8349cb513
--- /dev/null
+++ b/testing/glib/APKBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=glib
+pkgver=2.32.1
+pkgrel=0
+pkgdesc="Common C routines used by Gtk+ and other libs"
+url="http://www.gtk.org"
+arch="all"
+license='GPL'
+depends=
+triggers="$pkgname.trigger=/usr/share/glib-2.0/schemas:/usr/lib/gio/modules"
+depends_dev="perl gettext-dev libiconv-dev zlib-dev bzip2-dev libffi-dev"
+makedepends="$depends_dev"
+source="http://ftp.gnome.org/pub/gnome/sources/glib/${pkgver%.*}/glib-$pkgver.tar.xz"
+subpackages="$pkgname-doc $pkgname-dev $pkgname-lang"
+
+
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ # busybox env does not handle the -w after perl. we remove it for now
+ sed -i -e '1,1s/ -w//' gobject/glib-mkenums.in
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir/" install
+ rm "$pkgdir"/usr/lib/*.la
+}
+
+# move the stuff in /usr/bin to the glib-dev package
+dev() {
+ default_dev
+ mkdir -p "$subpkgdir"/usr/bin/
+ cd "$pkgdir"/usr/bin
+ mv glib-genmarshal glib-gettextize glib-mkenums gobject-query \
+ gtester gtester-report \
+ "$subpkgdir"/usr/bin/
+}
+
+md5sums="032c7cf9868c9aa186b490b155a41144 glib-2.32.1.tar.xz"
diff --git a/testing/glib/glib.trigger b/testing/glib/glib.trigger
new file mode 100644
index 000000000..04b9f5bd4
--- /dev/null
+++ b/testing/glib/glib.trigger
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+for i in "$@"; do
+ case "$i" in
+ */modules)
+ /usr/bin/gio-querymodules "$i"
+ ;;
+ */schemas)
+ /usr/bin/glib-compile-schemas "$i"
+ ;;
+ esac
+done
+