updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / geany-plugins-git / PKGBUILD
blob8891b7ed9c888eed999f3ec581461ecd678a5114
1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
2 # Contributor: eht16 <enrico.troeger@uvena.de>
3 # Contributor: Addict7 <nicolasfloquet@gmail.com>
4 pkgname=geany-plugins-git
5 pkgver=20111231
6 pkgrel=1
7 pkgdesc="Various plugins for Geany"
8 arch=('x86_64' 'i686')
9 url="http://plugins.geany.org/"
10 license=('GPL')
11 depends=('geany>=0.21' 'vte' 'lua' 'libwebkit' 'ctpl' 'gpgme' 'gtkspell' 'hicolor-icon-theme')
12 makedepends=('git' 'libtool' 'python' 'gpgme' 'ctpl' 'lua')
13 optdepends=('hspell: hebrew spell checker')
14 install=geany-plugins.install
15 provides=('geany-plugins')
16 conflicts=('geany-plugins-svn' 'geany-plugins')
17 _gitroot="git://github.com/geany/geany-plugins.git"
18 _gitname="geany-plugins"
20 build() {
21   cd "$srcdir"
23   msg "Connecting to the $_gitname git repository..."
24   if [ -d "$srcdir/$_gitname" ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
31   msg "GIT checkout done or server timeout"
32   cd "$srcdir"
33   rm -rf $_gitname-build
34   git clone $_gitname $_gitname-build
35   cd "$_gitname-build"
37   msg2 "Configuring..."
38   ./waf configure --prefix=/usr --libexecdir=/usr/lib
39   msg2 "Compiling..."
40   ./waf build
43 package() {
44   cd "$_gitname-build"
46   ./waf --destdir="$pkgdir" install
49 # vim:set ts=2 sw=2 et: