1 # Maintainer: Felix Bier <flx.bier@googlemail.com>
3 pkgname=gnome-globalmenu-git
6 pkgdesc="OSX/Unity-style global menu for GTK applications in the GNOME Shell"
8 url=http://code.google.com/p/gnome2-globalmenu/
10 depends=('gnome-shell')
11 makedepends=('git' 'intltool' 'vala')
12 conflicts=('gnome-globalmenu')
13 provides=('gnome-globalmenu')
14 install="$pkgname.install"
16 _gitroot="git://github.com/gnome-globalmenu/gnome-globalmenu.git"
17 _gitname="gnome-globalmenu"
21 msg "Connecting to GIT server"
23 if [[ -d $_gitname ]]; then
24 cd "$_gitname" && git pull origin
25 msg "The local files are updated."
27 git clone "$_gitroot" "$_gitname"
28 cd "$_gitname" && git checkout gnome-3
31 msg "GIT checkout done or server timeout"
32 msg "Starting build..."
34 rm -rf "$srcdir/$_gitname-build"
35 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
52 cd "$srcdir/$_gitname-build"
56 GTK2_MODULES_DIR=/usr/lib/gtk-2.0/modules \
57 GTK3_MODULES_DIR=/usr/lib/gtk-3.0/modules \
58 GLIB_COMPILE_SCHEMAS=/bin/true \
61 install -m755 -d "${pkgdir}/etc/profile.d"
62 install -m755 "${srcdir}/$_gitname-build/globalmenu.sh" "${pkgdir}/etc/profile.d/"
64 ln -sfv libglobalmenu-gtk2.so "${pkgdir}/usr/lib/gtk-2.0/modules/libglobalmenu-gtk.so"
66 # Adjust gnome-shell version number for extra breakage
67 SHELLVERSION=$(gnome-shell --version | cut -d ' ' -f 3)
69 sed -i s/version\":\ \\[\"[0-9].[0-9].[0-9]/version\":\ [\"$SHELLVERSION/ \
70 ${pkgdir}/usr/share/gnome-shell/extensions/GlobalMenu@globalmenu.org/metadata.json