blob: 27f018ef37194e5e839fa96be00490c0a8b8110d (
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: Sung Mingi <FiestaLake@protonmail.com>
pkgname=gnome-shell-extension-extension-list-git
_pkgname=extension-list
pkgver=42+r1+ge93f73c
pkgrel=2
pkgdesc="A Simple GNOME Shell extension manager in the top panel - git"
arch=('any')
url="https://github.com/tuberry/extension-list"
license=('GPL3')
depends=('gnome-shell')
makedepends=('git')
provides=('gnome-shell-extension-extension-list')
conflicts=('gnome-shell-extension-extension-list')
source=("$_pkgname::git+$url")
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
build() {
cd "${_pkgname}"
make all
}
package() {
cd "${_pkgname}"
local _uuid=$(grep -Po '(?<="uuid": ")[^"]*' _build/metadata.json)
local _destdir="${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}"
install -Dm644 -t "${_destdir}" README.md "_build"/{metadata.json,*.js,*.css}
install -Dm644 -t "${_destdir}/icons" "_build/icons"/*.svg
install -Dm644 -t "${pkgdir}/usr/share/glib-2.0/schemas/" ${_uuid}/schemas/*gschema.xml
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
if test -d "_build/locale"; then
cd "_build/locale"
for locale in */
do
install -Dm644 -t "${pkgdir}/usr/share/locale/${locale}/LC_MESSAGES" "${locale}/LC_MESSAGES"/*.mo
done
fi
}
|