updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / vala-09 / PKGBUILD
blob0d00b3fd0e279572203b09fe7e9caa207fea1bc1
1 # Contributor: twa022 <twa022 at gmail dot com>
3 pkgname=vala-09
4 _pkgname=vala
5 pkgver=0.9.8
6 pkgrel=3
7 pkgdesc="Compiler for the GObject type system 0.9 branch"
8 arch=('i686' 'x86_64')
9 url="http://live.gnome.org/Vala"
10 license=('LGPL')
11 depends=('glib2')
12 makedepends=('libxslt')
13 options=('!libtool')
14 source=(http://ftp.gnome.org/pub/gnome/sources/${_pkgname}/0.9/${_pkgname}-${pkgver}.tar.bz2)
16 build() {
17   cd "${srcdir}/${_pkgname}-${pkgver}"
19   ./configure --prefix=/opt/vala-09 --enable-vapigen
20   make
21   make DESTDIR="${pkgdir}" install
22   mkdir -p ${pkgdir}/usr/bin
23   cat > ${pkgdir}/usr/bin/valac-09 <<- __EOF__
24         #!/usr/bin/env bash
25         LD_PRELOAD='/opt/vala-09/lib/libvala-0.10.so.0' /opt/vala-09/bin/valac --vapidir='/opt/vala-09/share/vala-0.10/vapi' "\$@"
26         exit 0
27         __EOF__
28   chmod 755 ${pkgdir}/usr/bin/valac-09
29   
32 md5sums=('bb0c56845d0da349cbfd71d8645876f4')