updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / wcb2-git / PKGBUILD
blob9b889de0dcd8a9ac32fd1d1d9b52ccc298e8e888
1 # Contributor: ihateyou
2 arch=(i686 x86_64)
3 pkgname=wcb2-git
4 pkgver=20110112
5 pkgrel=1
6 pkgdesc="Patched version of Ekg2"
7 url="https://github.com/wcb2"
8 license=('GPL')
9 depends=('aspell' 'python2' 'gnutls' 'ncurses')
10 makedepends=('git' 'automake')
11 conflicts=('ekg2')
13 source=()
14 md5sums=()
16 _gitname="wcb2"
17 _gitroot="git://github.com/wcb2/wcb2.git"
18 _gitbranch="experimental"
20 build() {
21         cd ${startdir}/src
22         msg "Connecting to GIT server...."
23         
24         if [ ! -d ${_gitname} ]; then
25                 git clone ${_gitroot}
26         fi      
28         cd ${_gitname}
29         git checkout ${_gitbranch}
30         git pull
32         msg "GIT checkout done or server timeout"
33         msg "Starting make..."
34         
35         ./autogen.sh
36         # nasty and dirty
37         sed -i 's|ncursesw/ncurses.h|ncurses.h|g' configure plugins/ncurses/ecurses.h
38         ./configure --prefix=/usr \
39         --sysconfdir=/etc \
40         --enable-unicode \
41         --enable-shared \
42         --with-ncurses \
43         --without-readline \
44         --without-gtk \
45         --without-libgadu \
46         --without-libgsm
48         make || return 1
49         make DESTDIR=$startdir/pkg/ install