updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-paint-bzr / PKGBUILD
blob9539b22e664c25569dfe7e1025d6c019574b1b40
1 # Contributor: Berseker <berseker86 at gmail dot com>
2 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
3 pkgname=gnome-paint-bzr
4 pkgver=83
5 pkgrel=3
6 pkgdesc="Simple, easy to use paint program inspired by MS-Paint. BZR Version"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/gnome-paint/"
9 license=('GPL')
10 depends=('gtk2' 'hicolor-icon-theme')
11 makedepends=('subversion' 'intltool')
12 provides=('gnome-paint')
13 conflicts=('gnome-paint')
14 replaces=('gnome-paint' 'gnome-paint-svn')
15 install=$pkgname.install
16 _bzrbranch="lp:gnome-paint"
17 _bzrmod="gnome-paint"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to the server...."
23   if [ ! -d ./${_bzrmod} ]; then
24     bzr co ${_bzrbranch} ${_bzrmod}
25   else
26     bzr up ${_bzrmod}
27   fi
29   msg "Bazaar checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_bzrmod-build"
33   cp -r "$srcdir/$_bzrmod" "$srcdir/$_bzrmod-build"
34   cd "$srcdir/$_bzrmod-build"
36   #
37   # BUILD HERE
38   #
40   autoreconf
41   ./configure --prefix=/usr
42   make
45 package() {
46   cd "$srcdir/$_bzrmod-build"
47   make DESTDIR="$pkgdir/" install
48   # removing doc directory, only interesting for building
49   rm -rf $pkgdir/usr/doc
50