blob: c12801ed93bbb74ce811a2cb4f746721fd59b36f (
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
|
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
pkgname=gnome-shell-extension-no-overview-git
pkgver=r29.85eba64
pkgrel=1
pkgdesc="No overview at start-up"
arch=('any')
url="https://github.com/fthx/no-overview"
license=(
'GPL-3.0-or-later')
depends=(
'gnome-shell>=1:46'
)
makedepends=(
'git'
)
conflicts=("${pkgname%-git}")
provides=(${pkgname%-git})
source=("${pkgname%-git}::git+${url}")
md5sums=('SKIP')
options=('!strip')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
# support repositories that start without a tag but get tagged later on
( set -o pipefail
git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd "${srcdir}/${pkgname%-git}"
local uuid=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json)
local extensiondir="${pkgdir}/usr/share/gnome-shell/extensions/${uuid}"
install -dm755 "${extensiondir}"
find . -regextype posix-egrep -regex ".*\.(js|json)$" -exec\
install -Dm 644 {} ${extensiondir}/{} \;
}
|