updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / gnome-shell-extension-drive-menu-git / PKGBUILD
blob692e8ba970dddb60bba19f2277df8c3dfc5c9646
1 # Maintainer: Sebastian Lenz <sebastian@archusers.de>
2 pkgname=gnome-shell-extension-drive-menu-git
3 pkgver=20110501
4 pkgrel=1
5 pkgdesc="A status menu for accessing and unmounting removable devices."
6 arch=('i686' 'x86_64')
7 url="http://live.gnome.org/GnomeShell/Extensions"
8 license=('GPL' 'LGPL')
9 groups=()
10 depends=('gnome-shell-extension-common-git')
11 makedepends=('git' 'gnome-common')
12 optdepends=()
13 provides=()
14 conflicts=()
15 replaces=()
16 backup=()
17 _gitroot="git://git.gnome.org/gnome-shell-extensions"
18 _gitname="gnome-shell-extensions"
19 source=()
20 md5sums=()
22 build() {
23         cd ${srcdir}
24         msg "Connecting to GIT server...."
26         if [ -d ${_gitname}/.git ] ; then
27         cd ${_gitname}
29         if [ -z $( git branch -v | grep anongit ) ] ; then
30                 git remote set-url origin ${_gitroot}
31         fi
32     
33         git pull origin
34                 msg "The local files are updated."
35         else
36                 git clone ${_gitroot} ${_gitname}
37         fi
39         msg "GIT checkout done or server timeout"
40         msg "Starting make..."
42         cd ${srcdir}/${_gitname}
43         ./autogen.sh --prefix=/usr --enable-extensions="drive-menu"
45 package() {
46         cd ${srcdir}/${_gitname}
47         make DESTDIR=${pkgdir} install
48         rm -r ${pkgdir}/usr/share/locale