updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / plasmaplugin-git / PKGBUILD
blob0a3c95b8ef760760630cad239c2d9be418b27b40
1 # Contributor: BeholdMyGlory <larvid@gmail.com>
3 pkgname=plasmaplugin-git
4 pkgver=20090202
5 pkgrel=1
6 pkgdesc="Plugin for Firefox for displaying KDE4 plasmoids in a web page."
7 arch=('i686' 'x86_64')
8 url="http://repo.or.cz/w/plasmaplugin.git"
9 license=('GPL')
10 depends=('kdelibs')
11 makedepends=('cmake' 'automoc4' 'qt>=4.4.3' 'git')
12 install=${pkgname}.install
14 _gitroot="git://repo.or.cz/plasmaplugin.git"
15 _gitname="plasmaplugin"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_gitname-build"
32   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cp ../CMakeLists.txt "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
38   cmake .
39   make || return 1
40   make DESTDIR="$pkgdir/" install
41   cp "$srcdir/$_gitname-build/examples/plasma.html" "$pkgdir"/usr/lib/mozilla/plugins/
42