[arch-commits] Commit in gobject-introspection/trunk (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Fri Mar 6 11:54:21 UTC 2015
Date: Friday, March 6, 2015 @ 12:54:21
Author: jgc
Revision: 232920
upgpkg: gobject-introspection 1.43.91-1
Split package instead of using optdepends
Modified:
gobject-introspection/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++++++++++------------
1 file changed, 21 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-03-06 08:23:32 UTC (rev 232919)
+++ PKGBUILD 2015-03-06 11:54:21 UTC (rev 232920)
@@ -1,32 +1,41 @@
# $Id$
# Maintainer: Jan de Groot <jgc at archlinux.org>
-pkgname=gobject-introspection
-pkgver=1.42.0
+pkgbase=gobject-introspection
+pkgname=('gobject-introspection' 'gobject-introspection-runtime')
+pkgver=1.43.91
pkgrel=1
-pkgdesc="Introspection system for GObject-based libraries"
url="https://live.gnome.org/GObjectIntrospection"
arch=('x86_64' 'i686')
license=('LGPL' 'GPL')
-depends=('glib2')
makedepends=('cairo' 'python2' 'python2-mako')
-optdepends=('python2: gir development tools'
- 'python2-mako: g-ir-doc-tool')
-source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz)
-sha256sums=('3ba2edfad4f71d4f0de16960b5d5f2511335fa646b2c49bbb93ce5942b3f95f7')
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz)
+sha256sums=('8067214c23bf7010e3a4fdb137707a4190e6884e4fa58828e27d8f2886e80bda')
prepare() {
- cd $pkgname-$pkgver
+ cd $pkgbase-$pkgver
sed -i '1s|#!/usr/bin/env python$|&2|' giscanner/*.py
}
build() {
- cd $pkgname-$pkgver
+ cd $pkgbase-$pkgver
PYTHON=/usr/bin/python2 ./configure --prefix=/usr --disable-static --enable-doctool
make
}
-package() {
- cd $pkgname-$pkgver
+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
+}
+
+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
}
More information about the arch-commits
mailing list