summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0c717f1f92373094107e759d32dc07ecc9543e6 (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
40
41
42
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Tom Wagner <tom dot a dot wagner at protonmail dot com>
# Contributor: smcdougall <simon at sjmcdougall dot com>
pkgname=gnome-shell-extension-multi-monitors-add-on-git
_uuid=multi-monitors-add-on@spin83
pkgver=19.r49.gd8ea040
pkgrel=1
epoch=1
pkgdesc="Adds panels and thumbnails for additional monitors."
arch=('any')
url="https://github.com/realh/multi-monitors-add-on"
license=('GPL-2.0-or-later')
depends=('gnome-shell<=1:44.6')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/realh/multi-monitors-add-on.git')
sha256sums=('SKIP')

pkgver() {
  cd multi-monitors-add-on
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd multi-monitors-add-on

  install -d "$pkgdir/usr/share/gnome-shell/extensions/"
  cp -a "$_uuid/" "$pkgdir/usr/share/gnome-shell/extensions/"

  install -Dm644 "$_uuid/schemas/org.gnome.shell.extensions.multi-monitors-add-on.gschema.xml" -t \
    "$pkgdir/usr/share/glib-2.0/schemas/"

  for lang in de es fr it pl pt_BR; do
    install -Dm644 "locale/${lang}/LC_MESSAGES/multi-monitors-add-on.mo" -t \
      "$pkgdir/usr/share/locale/${lang}/LC_MESSAGES/"
  done

  rm -rf "$pkgdir/usr/share/gnome-shell/extensions/$_uuid"/{locale,schemas}
  rm "$pkgdir/usr/share/gnome-shell/extensions/$_uuid/multi-monitors-add-on.pot"
}