updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / evopedia-git / PKGBUILD
blobe1016a003837f299e29bfb4b9015fee8d281b9ab
2 pkgname=evopedia-git
3 pkgver=20110208
4 pkgrel=1
5 pkgdesc='Offline Wikipedia Viewer'
6 arch=('i686' 'x86_64')
7 url='http://evopedia.info/'
8 license=('GPL3')
9 depends=('bzip2' 'qt')
10 makedepends=('git')
11 replaces=('evopedia')
12 _gitroot="git://gitorious.org/evopedia/evopedia.git"
13 _gitname="evopedia"
15 build() {
16         msg "Connecting to GIT server...."
18         
19         [ -d $_gitname ] && {
20                 cd $_gitname
21                 git pull origin
22                 cd ..
24                 msg "Local files have been updated."
25         } || {
26                 git clone $_gitroot
27         }
29         msg "GIT checkout done or server timeout"
31         rm -rf $_gitname-build
32         git clone $_gitname $_gitname-build
33         cd $_gitname-build
34   qmake evopedia.pro PREFIX="$pkgdir"/usr
35   make
38 package() {
39   cd $_gitname-build
40   make install
43 # vim:set ts=2 sw=2 et: