updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-shell-extension-pomodoro-git / PKGBUILD
blobd6fa0e87dae9c913cec42313d9bd25e80f4418a9
1 # Maintainer: Max Gonzih <iam@gonzih.org>
3 pkgname=gnome-shell-extension-pomodoro-git
4 pkgver=20111017
5 pkgrel=1
6 pkgdesc="GNOME Shell extension for pomodoro technique."
7 arch=('any')
8 url="https://github.com/Gonzih/pomodoro-gnome-shell"
9 license=('MIT')
10 depends=('gnome-shell')
11 makedepends=('git')
12 optdepends=('gnome-tweak-tool: A tool to customize advanced GNOME 3 options.')
13 _gitroot="https://github.com/Gonzih/pomodoro-gnome-shell.git"
14 _gitname="pomodoro-gnome-shell"
15 _extensionname="pomodoro@iam.gonzih.org"
17 package() {
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 $_gitname
26   fi
28   mkdir -p ${pkgdir}/usr/share/gnome-shell/extensions/${_extensionname}
29   mv ${srcdir}/${_gitname}/* ${pkgdir}/usr/share/gnome-shell/extensions/${_extensionname}/