summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d4287b826609d068c17624a81f158db761d599b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $Id$
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
# Maintainer: TingPing <tingping@tingping.se>

pkgname=glade-git
_gitname=glade
pkgver=3.20.0.r211.g74b21b3
pkgrel=1
pkgdesc="User interface builder for GTK+ and GNOME."
provides=('glade')
conflicts=('glade')
arch=('i686' 'x86_64')
license=('GPL' 'LGPL')
depends=('gtk3' 'libxml2' 'desktop-file-utils' 'hicolor-icon-theme')
makedepends=('intltool' 'gtk-doc' 'gobject-introspection' 'python2-gobject' 'itstool' 'docbook-xsl'
			 'gnome-common')
optdepends=('python2: Python widgets support'
            'devhelp: help browser')
url="http://glade.gnome.org/"
install=glade.install
source=("git://git.gnome.org/$_gitname")
sha256sums=(SKIP)

pkgver() {
  cd "$_gitname"

  _minor_ver=`pcregrep -o1 '^m4_define\(glade_minor_version, (\d+)\)$' ./configure.ac`
  _micro_ver=`pcregrep -o1 '^m4_define\(glade_micro_version, (\d+)\)$' ./configure.ac`
  _rev=`git describe | sed 's/^GLADE[^-]*-/r/; s/-/./'`
  echo "3.$_minor_ver.$_micro_ver.$_rev"
}

build() {
  cd "$_gitname"
  PYTHON=/usr/bin/python2 ./autogen.sh --prefix=/usr --sysconfdir=/etc \
      --localstatedir=/var --disable-static
  make
}

package() {
  cd "$_gitname"
  make DESTDIR="$pkgdir" install
}