updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / geany-multiterm-git / PKGBUILD
bloba1f9a67d66e1698f216b33b6c0a6ad4d92485c10
1 # Contributor: Maciej Ciemborowicz <pub at ciemborowicz dot pl>
3 pkgname=geany-multiterm-git
4 pkgver=20110815
5 pkgrel=2
6 pkgdesc="MultiTerm plugin for Geany editor (terminal with tabs)."
7 arch=('i686' 'x86_64')
8 url="https://github.com/codebrainz/geany-multiterm"
9 license=('unknown')
10 depends=('geany' 'gtk2>=2.0' 'vte')
11 makedepends=('vala' 'git')
12 provides=('geany-multiterm')
13 source=()
14 md5sums=()
16 _gitname=geany-multiterm
18 build() {
19         cd $srcdir
21         msg "Connecting to GIT..."
23         if [[ -d $_gitname ]]; then
24                 cd $_gitname && git pull origin && cd ..
25         else
26                 msg "Cloning GIT (from GitHub)..."
27                 git clone $url || return 1
28         fi
30         rm -rf $_gitname-build
32         msg "Cloning GIT (local)..."
33         git clone $_gitname $_gitname-build || return 1
35         msg "Changing directory..."
36         cd "$srcdir/$_gitname-build" || return 1
38         msg "Configuring..."
39         ./autogen.sh || return 1
40         ./configure --prefix=/usr || return 1
42         msg "Building..."
43         make PREFIX=/usr sysconfdir=/ect localstatedir=/var || return 1
46 package() {
47         msg "Changing directory..."
48         cd "$srcdir/$_gitname-build" || return 1
49         msg "Installing..."
50         make PREFIX=/usr sysconfdir=/etc localstatedir=/var DESTDIR=$pkgdir install || return 1