# Maintainer: Natanael Copa pkgname=glib pkgver=2.28.0 pkgrel=1 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" 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" depends_dev="perl gettext-dev libiconv-dev zlib-dev bzip2-dev pkgconfig" _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="51dbe36bc03a29a1f9bf6b74fb4a6926 glib-2.28.0.tar.bz2"