blob: 8f089276f15d0e91d77332024e458e7f0dfac283 (
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
42
43
44
45
|
# Maintainer: Christian Schendel (doppelhelix@gmail.com)
# Maintainer: Kevin Concilio (kevin.concilio1@gmail.com)
pkgname=gnome-shell-extension-pano
pkgver=22
pkgrel=1
pkgdesc="Next-gen Clipboard Manager (forked from -git package)"
arch=('any')
url="https://github.com/oae/gnome-shell-pano"
license=('GPL2')
depends=('gnome-shell>=45'
'libgda6'
'cogl'
'gsound')
makedepends=('gobject-introspection'
'yarn'
'appstream'
'zip')
source=("$url/archive/refs/tags/v$pkgver.tar.gz")
md5sums=("SKIP")
prepare() {
cd "gnome-shell-pano-$pkgver"
yarn install
}
build() {
cd "gnome-shell-pano-$pkgver"
yarn build:package
}
package() {
cd "gnome-shell-pano-$pkgver/dist"
local uuid=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json)
local schema=$(grep -Po '(?<="settings-schema": ")[^"]*' metadata.json).gschema.xml
local destdir="${pkgdir}/usr/share/gnome-shell/extensions/${uuid}"
install -d "${destdir}"
bsdtar xvf ${uuid}.zip -C "$pkgdir/usr/share/gnome-shell/extensions/${uuid}/"
install -Dm644 "schemas/${schema}" -t "${pkgdir}/usr/share/glib-2.0/schemas/"
rm -rf "${destdir}/schemas"
}
|