summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77efc2a5487ec561a6a186340cfdad97fedce6a2 (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
# Maintainer: Jason K├Âlker <jason@koelker.net>
# Contributor: Oliver Papst <op3@mailbox.org>

pkgname=gnome-shell-extension-vertical-overview-git
pkgdesc='Gnome 40 Vertical workspaces'
url='https://github.com/RensAlthuis/vertical-overview'
pkgver=v6.r0.g832fb87
pkgrel=1
license=('GPL2')
arch=('any')
depends=(gnome-shell)
makedepends=('git' 'jq')
source=(
    "${pkgname}::git+${url}.git"
)
sha256sums=(
    'SKIP'
)

pkgver() {
  cd "${pkgname}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "${pkgname}"
  uuid=$(jq -r '.uuid' metadata.json)
  destdir="${pkgdir}/usr/share/gnome-shell/extensions/${uuid}"
  install -dm755 "${destdir}"
  install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
  install -Dm644 -t "${pkgdir}/usr/share/glib-2.0/schemas" \
      schemas/org.gnome.shell.extensions.vertical-overview.gschema.xml
  cp -a ./*.js ./*.ui ./metadata.json "${destdir}"
}