1 # Contributor: BeholdMyGlory <larvid@gmail.com>
3 pkgname=plasmaplugin-git
6 pkgdesc="Plugin for Firefox for displaying KDE4 plasmoids in a web page."
8 url="http://repo.or.cz/w/plasmaplugin.git"
11 makedepends=('cmake' 'automoc4' 'qt>=4.4.3' 'git')
12 install=${pkgname}.install
14 _gitroot="git://repo.or.cz/plasmaplugin.git"
15 _gitname="plasmaplugin"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
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"
40 make DESTDIR="$pkgdir/" install
41 cp "$srcdir/$_gitname-build/examples/plasma.html" "$pkgdir"/usr/lib/mozilla/plugins/