1 # Maintainer: Ole Ernst <olebowle at gmx dot com>
2 pkgname=gnome-shell-extension-timer-git
5 pkgdesc="A simple timer extension for gnome-shell"
7 url="http://github.com/olebowle/gnome-shell-timer"
9 depends=('gnome-shell')
11 install=('gnome-shell-extension-timer-git.install')
13 _gitroot="git://github.com/olebowle/gnome-shell-timer.git"
14 _gitname="gnome-shell-timer"
18 msg "Connecting to the GIT server..."
19 if [ -d "${srcdir}/${_gitname}" ] ; then
22 msg "The local files are updated..."
24 git clone ${_gitroot} ${_gitname}
26 msg "GIT checkout done."
30 cd "${srcdir}/${_gitname}/"
31 mkdir -p "${pkgdir}/usr/share/gnome-shell/extensions"
32 cp -R "timer@olebowle.gmx.com" "${pkgdir}/usr/share/gnome-shell/extensions/"
33 mkdir -p "$pkgdir/usr/share/glib-2.0/schemas"
34 cp "org.gnome.shell.extensions.timer.gschema.xml" "$pkgdir/usr/share/glib-2.0/schemas/"
35 mkdir -p "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
36 cp "utilities-timer-symbolic.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/"
37 cp "gnome-shell-timer-config.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/"
39 mkdir -p "$pkgdir/usr/bin"
40 cp "gnome-shell-timer-config.py" "$pkgdir/usr/bin/gnome-shell-timer-config"
41 mkdir -p "$pkgdir/usr/share/applications"
42 cp "gnome-shell-timer-config.desktop" "$pkgdir/usr/share/applications/"
44 for _lang in `locale -a | grep '^[[:alpha:]]\+_[[:alpha:]]\+$'`; do
45 if [ -d "po/${_lang}" ]; then
46 mkdir -p "$pkgdir/usr/share/locale/${_lang}/LC_MESSAGES"
47 msgfmt -cv -o "${pkgdir}/usr/share/locale/${_lang}/LC_MESSAGES/gnome-shell-timer.mo" "po/${_lang}/gnome-shell-timer.po"