updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-shell-activity-journal-git / PKGBUILD
blob74b03c7ee689231e578e89fb0b87c0bf7c148b02
1 # Maintainter: Ahmed M. Abdellah <a3dman1@gmail.com>
2 pkgname=gnome-shell-activity-journal-git
3 pkgver=20110622
4 pkgrel=1
5 pkgdesc="Zeitgeist based activity history journal"
6 arch=('any')
7 url="https://github.com/kitallis/gnome-shell-activity-journal"
8 license=('GPL3')
9 depends=('gnome-shell' 'zeitgeist')
10 makedepends=('git')
12 _gitroot="git://github.com/kitallis/gnome-shell-activity-journal.git"
13 _gitname="gnome-shell-activity-journal"
15 build() {
16         cd ${srcdir}
17         msg "Connecting to the GIT server..."
18         if [[ -d ${srcdir}/${_gitname} ]] ; then
19                 cd ${_gitname}
20                 git pull origin
21                 msg "The local files are updated..."
22         else
23                 git clone ${_gitroot} ${gitname}
24                 cd ${_gitname}
25         fi
26         msg "GIT checkout done."
29 package() {
30         cd "$srcdir/${_gitname}"
31         mkdir -p "$pkgdir/usr/share/gnome-shell/extensions/"
32         cp -R "activity-journal@gnome-shell-extensions.gnome.org" "$pkgdir/usr/share/gnome-shell/extensions"