1 # Maintainer: crazyelf5
6 pkgdesc="A text editor from the Elementary project"
8 url="https://launchpad.net/scratch"
10 depends=('gtksourceview3' 'libgee' 'gobject-introspection' 'glib2' 'desktop-file-utils'
11 'gconf' 'gtk3' 'granite-bzr' 'pango' 'dconf' 'hicolor-icon-theme')
12 makedepends=('bzr' 'cmake' 'vala-git')
13 optdepends=('contractor-bzr: Contractor integration [AUR]')
14 options=('!makeflags')
15 install=$pkgname.install
21 msg "Connecting to Bazaar server...."
23 if [ -d $_bzrmod ]; then
24 cd $_bzrmod && bzr pull $_bzrtrunk -r $pkgver
25 msg "The local files are updated."
28 bzr branch $_bzrtrunk $_bzrmod -r $pkgver
31 msg "BZR checkout done or server timeout"
32 msg "Starting make..."
34 [ -d $_bzrmod-build ] && rm -rf $_bzrmod-build
35 cp -r $_bzrmod $_bzrmod-build
37 [ -d build ] && rm -rf build
40 cmake .. -DCMAKE_INSTALL_PREFIX=/usr
45 cd "$srcdir/$_bzrmod-build/build"
46 make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir/" install