summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2744e46af011eb2579a91c26508daa328742c310 (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
32
33
34
35
36
37
38
39
# Maintainer: Maxim Andersson <thesilentboatman@gmail.com>

pkgname=gnome-shell-extension-shortcuts
_gitname=shortcuts-gnome-extension
pkgver=1.1.1
pkgrel=1
pkgdesc="Creates a pop-up that describes the commonly used keyboard shortcuts in GNOME Shell"
arch=('any')
url="https://gitlab.com/paddatrapper/shortcuts-gnome-extension"
license=('GPL3')
depends=('gnome-shell')
makedepends=('gettext')
options=('!emptydirs')
install=${pkgname}.install
source=("https://gitlab.com/paddatrapper/${_gitname}/repository/archive.tar.gz?ref=${pkgver}")
sha256sums=('69dd29db919b141a8156237b0f46c05df5b0ab6dae13b9893c148a46c8d1a4ab')

build() {
  cd "${srcdir}/${_gitname}-${pkgver}"*

  for po in locale/*/LC_MESSAGES/*.po; do
    msgfmt -cv -o ${po%.po}.mo $po;
  done
}

package() {
  cd "${srcdir}/${_gitname}-${pkgver}"*

  _uuid='Shortcuts@kyle.aims.ac.za'

  install -d "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}"
  install -d "${pkgdir}/usr/share/glib-2.0/schemas"

  mv "src/schemas/org.gnome.shell.extensions.shortcuts.gschema.xml" \
    "${pkgdir}/usr/share/glib-2.0/schemas/"
  cp -r src/* locale "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}"
}

# vim:set ts=2 sw=2 et: