blob: 5fa1a8256fd4ef437e9045f48312812422595296 (
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
|
# Maintainer: Stevezxc <stevezhou586 at gmail dot com>
pkgname=gnome-shell-extension-gjs-osk-git
_uuid=gjsosk@vishram1123.com
pkgver=r177.3e461bb
pkgrel=1
pkgdesc="A (marginally) better on screen keyboard for GNOME 45+."
arch=('any')
url="https://github.com/Vishram1123/gjs-osk"
license=('GPL-3.0-only')
depends=('dconf')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/Vishram1123/gjs-osk.git')
sha256sums=('SKIP')
pkgver() {
cd gjs-osk
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "gjs-osk/${_uuid}"
gnome-extensions pack --force --extra-source=ui --extra-source=physicalLayouts.json
}
package() {
cd "gjs-osk/${_uuid}"
install -d "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}"
bsdtar -xvf "${_uuid}.shell-extension.zip" -C "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/" --no-same-owner
install -d "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/keycodes"
tar -xvJf keycodes.tar.xz -C "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/keycodes" --no-same-owner
install -Dm644 schemas/org.gnome.shell.extensions.gjsosk.gschema.xml -t "$pkgdir/usr/share/glib-2.0/schemas/"
rm -rf "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/schemas/"
}
|