summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d7f7d86b759cd06a50d51400b8725279311975a (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
# Maintainer: Joseph DiGiovanni <jdigiovanni78 at gmail dot com>

pkgname=gnome-shell-extension-fullscreen-to-new-workspace-git
pkgver=r44.8237de3
pkgrel=2

source=("git+https://github.com/onsah/fullscreen-to-new-workspace.git")

sha256sums=(SKIP)

pkgdesc="New, maximized and fullscreen windows will be moved to empty workspaces"
arch=('any')
url="https://github.com/onsah/fullscreen-to-new-workspace"
license=('GPL3')
depends=('gnome-shell>=3.38')
provides=('gnome-shell-extension-fullscreen-to-new-workspace')
conflicts=('gnome-shell-extension-fullscreen-to-new-workspace')

_pkgname=fullscreen-to-new-workspace

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

package() {
  cd "${srcdir}/${_pkgname}"

  _uuid='fullscreen-to-empty-workspace@aiono.dev'
  _install_dir="${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}"

  install -d ${_install_dir}
  cp -r "src/"* -t "${_install_dir}/"
  
  install -Dm644 "src/schemas/org.gnome.shell.extensions.fullscreen-to-empty-workspace.gschema.xml" -t "${pkgdir}/usr/share/glib-2.0/schemas/"
  install -Dm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}