updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / gnome-shell-extension-advancedcalc-git / PKGBUILD
blob8a830537dc627ad7c8ac46d15f254077d4ffa53f
1 # Contributor: Florian Bäuerle <florian.bae@gmail.com>
3 pkgname=gnome-shell-extension-advancedcalc-git
4 pkgver=20120126
5 pkgrel=2
6 pkgdesc="An advanced calculator in the search overview"
7 arch=('i686' 'x86_64')
8 url="https://github.com/war1025/GCalcSearch"
9 groups=('gnome-shell-extensions')
10 license=('unknown')
11 depends=('gnome-shell')
13 _gitroot="https://github.com/war1025/GCalcSearch.git"
14 _gitname="GCalcSearch"
16 build() {
17   msg "Connecting to GIT server...."
19   if [ -d $startdir/src/$_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot
24   fi
26   msg "GIT checkout done or server timeout"
29 package() {
30     cd $srcdir/$_gitname
31     install -Dm644 extension.js $pkgdir/usr/share/gnome-shell/extensions/gcalc-search@wrowclif.org/extension.js
32     install -Dm644 metadata.json $pkgdir/usr/share/gnome-shell/extensions/gcalc-search@wrowclif.org/metadata.json
33     install -Dm644 stylesheet.css $pkgdir/usr/share/gnome-shell/extensions/gcalc-search@wrowclif.org/stylesheet.css
34     install -Dm644 README $pkgdir/usr/share/gnome-shell/extensions/gcalc-search@wrowclif.org/README