main/glib: add trigger to compile schemas

This commit is contained in:
Natanael Copa 2010-10-08 06:09:34 +00:00
parent 9d964bea3d
commit 86c997fd2a
2 changed files with 11 additions and 2 deletions

View File

@ -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"

4
main/glib/glib.trigger Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
/usr/bin/glib-compile-schemas "$@"