summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ec93b516c72b0c2407083668cff9805c36e69f6 (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
# Maintainer: Pieter Goetschalckx <3.14.e.ter at gmail dot com>

pkgname=gnome-shell-extension-put-window-git
pkgver=r336.787100c
pkgrel=1
pkgdesc="Makes window movement a lot easier. Can be compared with a basic version of the compiz grid plugin."
arch=('any')
url="https://github.com/negesti/gnome-shell-extensions-negesti"
license=('GPL2')
depends=('gnome-shell' 'libwnck3')
makedepends=('git')
source=("$pkgname::git+https://github.com/negesti/gnome-shell-extensions-negesti.git")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$pkgname"
  _uuid='putWindow@clemens.lab21.org'

  install -Dm644 "metadata.json" \
    "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/metadata.json"
  install -m644 "extension.js" \
    "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/extension.js"
  install -m644 "prefs.js" \
    "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/prefs.js"
  install -m644 "utils.js" \
    "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/utils.js"
  install -m644 "moveFocus.js" \
    "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/moveFocus.js"
  install -m644 "moveWorkspace.js" \
    "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/moveWorkspace.js"
  install -m644 "convenience.js" \
    "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/convenience.js"
  install -Dm644 "schemas/org.gnome.shell.extensions.org-lab21-putwindow.gschema.xml" \
    "${pkgdir}/usr/share/glib-2.0/schemas/org.gnome.shell.extensions.org-lab21-putwindow.gschema.xml"
}