updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-shell-extension-package-installer-git / PKGBUILD
blob8bc7a9368aa6a9f062d9901711fb70f6eb4c987e
1 # Maintainer: sanderd17 <sanderd17[AT]gmail[DOT]com>
2 # Author: sanderd17 <sanderd17[AT]gmail[DOT]com>
4 pkgname=gnome-shell-extension-package-installer-git
5 pkgver=20120120
6 pkgrel=1
7 pkgdesc="Install packages directly from the Gnome-Shell overview."
8 arch=(i686 x86_64)
9 url="https://gitorious.org/gnome-shell-extension-application-installer"
10 license=('LGPL')
11 depends=('packer' 'package-query' 'gnome-shell>=3.2')
12 makedepends=('git')
13 provides=()
14 conflicts=()
15 optdepends=()
16 replaces=()
17 options=()
18 source=()
19 md5sums=()
21 _gitroot="git://git.gitorious.org/gnome-shell-extension-application-installer/gnome-shell-extension-application-installer.git"
22 _gitname="gnome-shell-extension-application-installer.git"
25 build() {
27   cd "$srcdir"
28   msg "Connecting to GIT server...."
30   if [ -d $_gitname ] ; then
31     cd $_gitname && git pull origin
32     msg "The local files are updated."
33   else
34     git clone $_gitroot $_gitname
35   fi
37   msg "GIT checkout done or server timeout"
38   msg "Starting make..."
40   rm -rf "$srcdir/$_gitname-build"
41   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42   cd "$srcdir/$_gitname-build"
44   mkdir -p ${pkgdir}/usr/share/gnome-shell/extensions/installer@sanderd17.gmail.com
46   mv ${srcdir}/${_gitname}-build/* ${pkgdir}/usr/share/gnome-shell/extensions/installer@sanderd17.gmail.com