summaryrefslogtreecommitdiffstats
path: root/main/glib
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-10-08 06:09:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-10-08 06:10:32 +0000
commit86c997fd2ae3c6e065b661f22f11368a24cd0edb (patch)
tree0081e318f9b6471568cde7191674e88a76dacdb0 /main/glib
parent9d964bea3dacb44d4602dc5679d765f1af1e59d5 (diff)
downloadaports-86c997fd2ae3c6e065b661f22f11368a24cd0edb.tar.bz2
aports-86c997fd2ae3c6e065b661f22f11368a24cd0edb.tar.xz
main/glib: add trigger to compile schemas
Diffstat (limited to 'main/glib')
-rw-r--r--main/glib/APKBUILD9
-rw-r--r--main/glib/glib.trigger4
2 files changed, 11 insertions, 2 deletions
diff --git a/main/glib/APKBUILD b/main/glib/APKBUILD
index 97a9389bb..7a8cd742a 100644
--- a/main/glib/APKBUILD
+++ b/main/glib/APKBUILD
@@ -1,11 +1,12 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glib
pkgver=2.26.0
-pkgrel=0
+pkgrel=1
pkgdesc="Common C routines used by Gtk+ and other libs"
url="http://www.gtk.org"
license='GPL'
depends=
+triggers="$pkgname.trigger:/usr/share/glib-2.0/schemas"
makedepends="gettext-dev libiconv-dev zlib-dev bzip2-dev pkgconfig"
source="http://ftp.gnome.org/pub/gnome/sources/glib/${pkgver%.*}/glib-$pkgver.tar.bz2"
subpackages="$pkgname-doc $pkgname-dev"
@@ -35,7 +36,11 @@ package() {
# move the stuff in /usr/bin to the glib-dev package
dev() {
default_dev
- mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+ 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="9b7dc61f5e389e1cff277a6350c37397 glib-2.26.0.tar.bz2"
diff --git a/main/glib/glib.trigger b/main/glib/glib.trigger
new file mode 100644
index 000000000..181878d06
--- /dev/null
+++ b/main/glib/glib.trigger
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+/usr/bin/glib-compile-schemas "$@"
+