1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Ravomavain <ravomavain@gmail.com>
8 pkgdesc="Val(a)IDE is an Integrated Development Environment for the Vala programming language."
10 url="http://www.valaide.org/"
12 depends=('gtksourceview2' 'vala>=0.11' 'libunique' 'gdl2' 'desktop-file-utils' 'hicolor-icon-theme')
13 makedepends=('bzr' 'valadoc-git')
14 options=('!emptydirs')
15 install="$pkgname.install"
16 source=('start-page-bg-color.patch')
17 md5sums=('5a2a1559c0ebacbc9ad5284dff46f15f')
20 _bzrtrunk=lp:${_bzrmod}
25 msg "Connecting to Bazaar server...."
27 if [ -d ${_bzrmod} ] ; then
28 bzr up ${_bzrmod} -r ${pkgver}
29 msg "The local files are updated."
31 bzr co ${_bzrtrunk} ${_bzrmod} -r ${pkgver}
34 msg "Bazaar checkout done or server timeout"
35 msg "Starting make..."
37 rm -rf "$srcdir/$_bzrmod-build"
38 cp -r "$srcdir/$_bzrmod" "$srcdir/$_bzrmod-build"
39 cd "$srcdir/$_bzrmod-build"
45 # set a bigger icon for desktop file
46 sed -i "s|32|64|" data/$_pkg.desktop.in
48 # delete update-mime-database in wscript
49 sed -i "/update-mime/d" wscript
51 # fix annonying start-page unreadability for dark themes
52 # waiting to be merged upstream
53 patch -p1 -i ../start-page-bg-color.patch
55 python2 waf configure --prefix=/usr
60 cd "$srcdir/$_bzrmod-build"
62 python2 waf install --destdir="$pkgdir"