blob: 43d745dc0b78c637cec9f813aac22cc8d93b935a (
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
46
47
48
49
50
51
52
53
|
# Maintainer: getzze <getzze at gmail dot com>
pkgname=gnome-shell-extension-logo-menu
pkgver=22.6
_pkgname=Logomenu
_tag="260424"
pkgrel=1
pkgdesc='Quick access menu for the GNOME panel that help ease the workflow for newcomers and power users alike.'
arch=('any')
url="https://github.com/Aryan20/Logomenu"
license=('GPL2')
depends=('gnome-shell')
makedepends=('unzip')
source=("${url}/archive/refs/tags/v${pkgver}_${_tag}.tar.gz")
sha256sums=('1d859f87cf5ffb34bcd941d1177f9a497cf58bab512207284961df7140521201')
build() {
cd "${_pkgname}-${pkgver}_${_tag}"
make build
}
package() {
cd "${_pkgname}-${pkgver}_${_tag}"
local _uuid=logomenu@aryan_k
# Install to prefix
## Does not always work because of bug: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2821
##XDG_DATA_HOME="${pkgdir}/usr/share" gnome-extensions install "${_uuid}.shell-extension.zip"
# Install to dest dir
local _destdir="${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}"
install -d "${_destdir}"
unzip ./"${_uuid}.shell-extension.zip" -d "${_destdir}"
# Move settings schema to system schema dir and remove compiled schema (a
# pacman hook generates those)
install -d "${pkgdir}/usr/share/glib-2.0/"
mv "${_destdir}/schemas" \
"${pkgdir}/usr/share/glib-2.0/"
schemas="${pkgdir}/usr/share/glib-2.0/schemas/gschemas.compiled"
if [ -f "${schemas}" ]; then
rm -rf "${schemas}"
fi
# Move local to system locale directory
mv "${_destdir}/locale" \
"${pkgdir}/usr/share"
install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|