core/gobject-introspection/PKGBUILD

43 lines
1.3 KiB
Bash
Raw Normal View History

2012-02-26 12:09:49 +08:00
2015-12-17 18:29:35 +08:00
pkgbase=gobject-introspection
pkgname=('gobject-introspection' 'gobject-introspection-runtime')
pkgver=1.54.1
2015-01-05 21:49:15 +08:00
pkgrel=1
2015-12-17 18:29:35 +08:00
url="https://live.gnome.org/GObjectIntrospection"
arch=('x86_64')
2010-03-22 01:35:58 +08:00
license=('LGPL' 'GPL')
makedepends=('cairo' 'python3' 'python2-mako')
2015-12-17 18:29:35 +08:00
source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz)
sha256sums=('b88ded5e5f064ab58a93aadecd6d58db2ec9d970648534c63807d4f9a7bb877e')
2012-02-26 12:09:49 +08:00
2015-01-05 21:49:15 +08:00
prepare() {
2015-12-17 18:29:35 +08:00
cd $pkgbase-$pkgver
2015-01-05 21:49:15 +08:00
sed -i '1s|#!/usr/bin/env python$|&2|' giscanner/*.py
NOCONFIGURE=1 ./autogen.sh
2015-01-05 21:49:15 +08:00
}
2010-03-22 01:35:58 +08:00
build() {
2015-12-17 18:29:35 +08:00
cd $pkgbase-$pkgver
2014-02-10 06:14:56 +08:00
PYTHON=/usr/bin/python2 ./configure --prefix=/usr --disable-static --enable-doctool
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
2015-12-17 18:29:35 +08:00
package_gobject-introspection-runtime() {
pkgdesc="Introspection system for GObject-based libraries - runtime files"
depends=('glib2')
cd $pkgbase-$pkgver
make DESTDIR="$pkgdir" install-libLTLIBRARIES install-typelibsDATA
2010-03-22 01:35:58 +08:00
}
2015-12-17 18:29:35 +08:00
package_gobject-introspection() {
pkgdesc="Introspection system for GObject-based libraries"
depends=("gobject-introspection-runtime=$pkgver" 'python2-mako' 'python2')
options=('!emptydirs')
cd $pkgbase-$pkgver
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" uninstall-libLTLIBRARIES uninstall-typelibsDATA
}