updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / eureka-svn / PKGBUILD
blobbf89c2c6e2650c089be006cda97edc659184e9e9
1 # Contributor: Tim Yang <tdy@gmx.com>
2 # Contributor: adriano <adriano.src@gmail.com>
3 pkgname=eureka-svn
4 pkgver=53
5 pkgrel=1
6 pkgdesc="A lightweight web browser based on KDE"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/eurekabrowser/"
9 license=('GPL')
10 depends=('kdebase-runtime')
11 makedepends=('automoc4' 'cmake' 'subversion')
12 provides=('eureka=0.5')
13 conflicts=('eureka')
14 source=()
15 md5sums=()
17 _svntrunk="http://eurekabrowser.googlecode.com/svn/trunk/"
18 _svnmod="eureka"
20 build() {
21   cd "$srcdir"
23   msg "Connecting to $_svntrunk..."
24   if [ -d "$_svnmod/.svn" ]; then
25     cd $_svnmod && svn up
26     msg2 "Local files updated"
27   else
28     svn co $_svntrunk --config-dir ./ $_svnmod
29     msg2 "SVN checkout done"
30   fi
32   rm -rf "$srcdir/$_svnmod-build"
33   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
34   cd "$srcdir/$_svnmod-build"
36   msg "Starting make..."
37   cmake -DCMAKE_INSTALL_PREFIX=/usr \
38         -DCMAKE_BUILD_TYPE=Release . || return 1
39   make || return 1
40   make DESTDIR="$pkgdir" install || return 1
41   install -Dm644 src/eurekaui.rc "$pkgdir/opt/kde/share/apps/eureka/eurekaui.rc"