updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / otteredit-git / PKGBUILD
blob0fc00e97e9000e317047b0508ad8dee99e146d81
1 # Contributor: Vojtech Horky <vojta . horky at-symbol seznam . cz>
2 pkgname=otteredit-git
3 pkgver=20090917
4 pkgrel=1
5 pkgdesc="Source code editor with simple project management"
6 url="https://sourceforge.net/projects/otteredit/"
7 arch=('i686' 'x86_64')
8 license=('GPL')
9 depends=('wxgtk')
10 makedepends=('git' 'cmake')
11 conflicts=()
12 replaces=()
13 backup=()
14 source=()
15 md5sums=()
17 _gitroot="git://otteredit.git.sourceforge.net/gitroot/otteredit/otteredit"
18 _gitname="otteredit"
20 build() {
21         cd ${srcdir}
22         msg "Connecting to SourceForge.net GIT server...."
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         
33         
34         msg "Starting make..."
35         git clone $_gitname $_gitname-build
36         cd ${srcdir}/$_gitname-build
37         
38         mkdir build
39         cd build
40         
41         cmake -DCMAKE_INSTALL_PREFIX=/usr/ .. || return 1
42         make || return 1
43         make DESTDIR=${pkgdir} install || return 1