summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 102038a57ce4374496377bf0e28f1b7ab0e12641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Ole Ernst <olebowle at gmx dot com>
pkgname=gnome-shell-extension-timer-git
pkgver=20121103
pkgrel=1
pkgdesc="A simple timer extension for gnome-shell"
arch=('any')
url="http://github.com/olebowle/gnome-shell-timer"
license=('GPL3')
depends=('gnome-shell' 'python2')
makedepends=('git')
install="$pkgname.install"
source=("git://github.com/olebowle/gnome-shell-timer.git")
sha256sums=('SKIP')

package() {
  cd gnome-shell-timer
  install -Dm755 gnome-shell-timer-config.py "$pkgdir/usr/bin/gnome-shell-timer-config"
  install -Dm644 gnome-shell-timer-config.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/gnome-shell-timer-config.svg"
  install -Dm644 utilities-timer-symbolic.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/utilities-timer-symbolic.svg"
  install -Dm644 gnome-shell-timer-config.desktop "$pkgdir/usr/share/applications/gnome-shell-timer-config.desktop"
  install -Dm644 org.gnome.shell.extensions.timer.gschema.xml "$pkgdir/usr/share/glib-2.0/schemas/org.gnome.shell.extensions.timer.gschema.xml"

  mkdir -p "$pkgdir/usr/share/gnome-shell/extensions"
  cp -r "timer@olebowle.gmx.com" "$pkgdir/usr/share/gnome-shell/extensions/"

  cd po
  for _lang in */; do
    mkdir -p "$pkgdir/usr/share/locale/${_lang}LC_MESSAGES"
    msgfmt -cv -o "$pkgdir/usr/share/locale/${_lang}LC_MESSAGES/gnome-shell-timer.mo" "${_lang}gnome-shell-timer.po"
  done
}