blob: 71f1911fe94f9b934c9ebb3a1f09a85500d44896 (
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: Christian Schendel <doppelhelix at gmail dot com>
pkgname=gnome-shell-extension-applications-overview-tooltip-git
pkgver=10.r2.g2e81270
pkgrel=4
pkgdesc="Shows a tooltip over applications icons on applications overview"
arch=(any)
url="https://github.com/RaphaelRochet/applications-overview-tooltip"
install=${pkgname%-git}.install
license=('unknown')
depends=('gnome-shell>=3.38')
makedepends=('git' 'glib2')
conflicts=("${pkgname%-git}")
provides=(${pkgname%-git})
source=("${pkgname%-git}::git+https://github.com/RaphaelRochet/applications-overview-tooltip.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long --tags | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
package() {
_uuid="applications-overview-tooltip@RaphaelRochet"
cd "${srcdir}"
chmod -R 644 ./*
install -d "${pkgdir}/usr/share/gnome-shell/extensions/"
mv ${pkgname%-git} ${_uuid}
cp -r "${_uuid}" "${pkgdir}/usr/share/gnome-shell/extensions/"
#rebuild compiled schemas if missing
if [[ ! -f "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/schemas/gschemas.compiled" ]]; then
glib-compile-schemas ${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/schemas
fi
chmod -R 755 "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/"
}
|