updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / valencia-gedit3-git / PKGBUILD
blob0c8a052a62a252677c04dbfd83c59e7760f0b061
1 # -*- shell-script -*-                                                                                                                             
2 # Maintainer: Gianmarco Brocchi <brocchi@poisson.phc.unipi.it>
4 pkgname=valencia-gedit3-git
5 pkgver=20110827
6 pkgrel=1
7 pkgdesc="Turn gedit into a Vala development environment"
8 arch=('i686' 'x86_64')
9 url="http://yorba.org/valencia/"
10 license=('LGPL')
11 depends=('vala' 'libpeas' 'gtksourceview3' 'libgee' 'vte3')
12 makedepends=('git')
13 # provides=()
14 conflicts=('valencia')
15 # replaces=()
16 # backup=()
17 # options=()
18 install=${pkgname}.install
19 source=(makefile.patch)
20 # noextract=()
21 md5sums=('1f24347e5d17f8d86052f2c603a0009f')
23 _gitroot="git://yorba.org/valencia"
24 _gitname="valencia"
26 build() {
27   cd "$srcdir"
28   msg "Connecting to GIT server...."
30   if [[ -d "$_gitname" ]]; then
31     cd "$_gitname" && git pull
32     msg "The local files are updated."
33   else
34     git clone "$_gitroot" "$_gitname" --branch gedit-3
35   fi
37   msg "GIT checkout done or server timeout"
38   msg "Starting build..."
40   rm -rf "$srcdir/$_gitname-build"
41   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42   cd "$srcdir/$_gitname-build"
44   patch -i "$srcdir/makefile.patch" -p0 || return 1
45   make || return 1
46   make DESTDIR="$pkgdir/" install
49 # package() {
50 #   cd "$srcdir/$_gitname-build"
51 #   make DESTDIR="$pkgdir/" install
52 # }
54 # vim:set ts=2 sw=2 et: