updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ebview-git / PKGBUILD
blobba093f31d8a2d5dbd849e30c2a8429f3a44983b7
1 # Contributor: system <system at tou dot de>
2 pkgname=ebview-git
3 pkgver=20091001
4 pkgrel=1
5 pkgdesc="GTK-based EPWING dictionary viewer"
6 arch=("i686" "x86_64")
7 url="http://epview.sourceforge.net"
8 license=('GPL')
9 depends=('gtk2' 'eb-library')
10 makedepends=('git')
11 source=()
12 conflicts=('ebview')
13 provides=('ebview')
15 _gitroot="git://github.com/fujii/ebview.git"
16 _gitname="ebview"
18 build() {
19      cd ${srcdir}
20      msg "Connecting to GIT server...."
21      
22      [ -d $_gitname ] && {
23         cd $_gitname
24         git pull origin
25         msg "Local files have been updated."
26         cd ..
27      } || { 
28         git clone $_gitroot $_gitname
29      }
30      
31      msg "GIT checkout done or server timeout"
32      rm -rf $_gitname-build
33      cp -rf $_gitname/ $_gitname-build/
34      cd $_gitname-build
36      msg "Starting make..."
37      ./autogen.sh
38      ./configure --prefix=/usr --sysconfdir=/etc || return 1
39      make || return 1
40      make DESTDIR=$startdir/pkg install || return 1
42 md5sums=()