1 # Contributor: Maciej Ciemborowicz <pub at ciemborowicz dot pl>
3 pkgname=geany-multiterm-git
6 pkgdesc="MultiTerm plugin for Geany editor (terminal with tabs)."
8 url="https://github.com/codebrainz/geany-multiterm"
10 depends=('geany' 'gtk2>=2.0' 'vte')
11 makedepends=('vala' 'git')
12 provides=('geany-multiterm')
16 _gitname=geany-multiterm
21 msg "Connecting to GIT..."
23 if [[ -d $_gitname ]]; then
24 cd $_gitname && git pull origin && cd ..
26 msg "Cloning GIT (from GitHub)..."
27 git clone $url || return 1
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
39 ./autogen.sh || return 1
40 ./configure --prefix=/usr || return 1
43 make PREFIX=/usr sysconfdir=/ect localstatedir=/var || return 1
47 msg "Changing directory..."
48 cd "$srcdir/$_gitname-build" || return 1
50 make PREFIX=/usr sysconfdir=/etc localstatedir=/var DESTDIR=$pkgdir install || return 1