blob: d8a2c963aef3db5c136194b4c6ca36b0d5de4dd6 (
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: Justin Chadwell <me@jedevc.com>
pkgname=gnome-shell-extension-reorder-workspaces-git
_pkgname=gnome-reorder-workspaces
pkgver=11.r0.gfd8628a
pkgrel=1
pkgdesc="Move workspaces up or down in the GNOME overview"
arch=('any')
url="https://github.com/jeremiahmegel/gnome-reorder-workspaces"
license=('GPL3')
depends=('gnome-shell>=1:40')
makedepends=('git' 'unzip' 'yarn')
provides=("${pkgname%-git}")
source=(git+$url.git)
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgname"
yarn install
yarn build
}
package() {
cd "$_pkgname"
local uuid=$(grep -Po '(?<="uuid": ")[^"]*' package.json)
install -d "$pkgdir/usr/share/gnome-shell/extensions/${uuid}"
unzip -X "dist/${uuid}.shell-extension.zip" -d "$pkgdir/usr/share/gnome-shell/extensions/${uuid}"
}
|