diff options
Diffstat (limited to 'main/gobject-introspection')
-rw-r--r-- | main/gobject-introspection/APKBUILD | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/main/gobject-introspection/APKBUILD b/main/gobject-introspection/APKBUILD index fae880e077..4c4580475d 100644 --- a/main/gobject-introspection/APKBUILD +++ b/main/gobject-introspection/APKBUILD @@ -1,17 +1,19 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=gobject-introspection pkgver=0.10.8 -pkgrel=0 +pkgrel=1 pkgdesc="Introspection system for GObject-based libraries" url="http://live.gnome.org/GObjectInstrospection" arch="all" license="LGPL GPL" -makedepends="flex bison glib-dev libffi-dev python-dev libtool" -depends="python glib-dev libffi-dev cairo-dev" +depends_dev="python glib-dev libffi-dev cairo-dev" +makedepends="$depends_dev flex bison python-dev libtool" +depends= +replaces="libgirepository" source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2" # since this is a dev package by definition we dont bother separate -dev -subpackages="$pkgname-doc libgirepository" +subpackages="$pkgname-doc $pkgname-dev" _builddir="$srcdir"/$pkgname-$pkgver prepare() { @@ -28,22 +30,24 @@ prepare() { build() { cd "$_builddir" -# export CPPFLAGS= ./configure --prefix=/usr --disable-static || return 1 - # FIXME: parallel builds is broken - make -j1 || return 1 + make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" -name '*.la' -delete } -libgirepository() { - pkgdesc="Runtime library for gobject-introspection" - cd "$_builddir" - install -d "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/libgirepository*.so* "$subpkgdir"/usr/lib/ +dev() { + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/share "$subpkgdir"/usr/ || return 1 + mv "$pkgdir"/usr/lib/gobject-introspection "$subpkgdir"/usr/lib/ \ + || return 1 + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ || return 1 + default_dev + replaces="gobject-introspection" } md5sums="b5da58a5327d13b4d1e08b8e42b2456d gobject-introspection-0.10.8.tar.bz2" |