updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / foxkit-git / PKGBUILD
blobbfa8d3498421667eddd332960ccacd662fd7c0d6
1 # Contributor: Tim Yang <tdy@gmx.com>
2 # Contributor: adriano <adriano.src@gmail.com>
3 pkgname=foxkit-git
4 pkgver=20090117
5 pkgrel=1
6 pkgdesc="A QtWebKit web browser"
7 arch=('i686')
8 url="http://code.google.com/p/foxkit/"
9 license=('GPL')
10 depends=('kdebase-runtime' 'openssl')
11 makedepends=('automoc4' 'cmake' 'git')
12 provides=('foxkit=0.0.5')
13 conflicts=('foxkit')
14 source=()
15 md5sums=()
17 _gitroot="git://gitorious.org/foxkit/mainline.git"
18 _gitname="mainline"
20 build() {
21   cd "$srcdir"
23   msg "Connecting to $_gitroot..."
24   if [ -d "$_gitname" ] ; then
25     cd $_gitname && git pull origin
26     msg2 "Local files updated"
27   else
28     git clone $_gitroot
29     msg2 "Git checkout done"
30   fi
32   rm -rf "$srcdir/$_gitname-build"
33   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-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/foxkitui.rc "$pkgdir/opt/kde/share/apps/foxkit/foxkitui.rc"