updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / gnome-shell-extension-calc-git / PKGBUILD
blob68bf62b8498bf1c350eae0de982a383997ceb6c5
1 # Contributor: Nazarov Pavel <nazarov.pn@gmail.com>
3 pkgname=gnome-shell-extension-calc-git
4 pkgver=20120120
5 pkgrel=1
6 pkgdesc="A simple calculator in the search overview"
7 arch=('i686' 'x86_64')
8 url="https://github.com/eonpatapon/gnome-shell-extension-calc"
9 groups=('gnome-shell-extensions')
10 license=('GPL2')
11 depends=('gnome-shell')
13 _gitroot="git://github.com/eonpatapon/gnome-shell-extension-calc.git"
14 _gitname="gnome-shell-extension-calc"
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/calc@patapon.info/extension.js
32     install -Dm644 metadata.json $pkgdir/usr/share/gnome-shell/extensions/calc@patapon.info/metadata.json
33     install -Dm644 stylesheet.css $pkgdir/usr/share/gnome-shell/extensions/calc@patapon.info/activitiesbutton.css
34     install -Dm644 COPYING $pkgdir/usr/share/gnome-shell/extensions/calc@patapon.info/COPYING
35     install -Dm644 README.md $pkgdir/usr/share/gnome-shell/extensions/calc@patapon.info/README.md