blob: f54080e105baf3f336a57075e5cf96a3e55430d7 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# Maintainer: XZS <d dot f dot fischer at web dot de>
# Contributor: Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
# Contributor: Alucryd <alucryd at gmail dot com>
# This PKGBUILD is maintained on GitHub <https://github.com/dffischer/gnome-shell-extensions>.
# You may find it convenient to file issues and pull requests there.
pkgname=gnome-shell-extension-coverflow-alt-tab-git
pkgver=1.10
pkgrel=2
pkgdesc="Replacement of Alt-Tab, iterates through windows in a cover-flow manner"
arch=('any')
url="https://github.com/dmo60/CoverflowAltTab"
license=('GPL')
makedepends+=('git')
source+=("${_gitname:=${pkgname%-git}}::${_giturl:-git+$url}")
for integ in $(get_integlist)
do
typeset -n array="${integ}sums"
array+=('SKIP')
done
provides+=("$_gitname=$pkgver")
conflicts+=("$_gitname")
pkgver() {
cd ${_gitname:-$pkgname}
git describe --long --tags 2>/dev/null | sed 's/[^[:digit:]]*\(.\+\)-\([[:digit:]]\+\)-g\([[:xdigit:]]\{7\}\)/\1.r\2.g\3/;t;q1'
[ ${PIPESTATUS[0]} -eq 0 ] || \
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
for function in $(declare -F | grep -Po 'package_[[:digit:]]+[[:alpha:]_]*$')
do
$function
done
}
package_01_locate() {
msg2 'Locating extension...'
cd "$(find -name 'metadata.json' -execdir test -e extension.js \; \
-printf '%C@ %h\n' | sort -nr | sed 's/^.* //;q' )"
extname=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json)
destdir="$pkgdir/usr/share/gnome-shell/extensions/$extname"
}
package_02_install() {
msg2 'Installing extension code...'
find -maxdepth 1 \( -iname '*.js*' -or -iname '*.css' -or -iname '*.ui' \) \
-exec install -Dm644 -t "$destdir" '{}' +
}
package_10_locale() {
msg2 'Installing translations...'
(
cd locale
for locale in */
do
install -Dm644 -t "$pkgdir/usr/share/locale/$locale/LC_MESSAGES" "$locale/LC_MESSAGES"/*.mo
done
)
}
if [ -z "$install" ]
then
install=gschemas.install
fi
package_10_schemas() {
msg2 'Installing schemas...'
find -name '*.xml' -exec install -Dm644 -t "$pkgdir/usr/share/glib-2.0/schemas" '{}' +
}
depends[125]=gnome-shell
prefix() {
[ "$1" -le 30 ] || echo 1:
}
package_20_version() {
local compatibles=($(\
find -path ./pkg -type d -prune -o \
-name metadata.json -exec cat '{}' \; | \
tr -d '\n' | grep -Po '(?<="shell-version": \[)[^\[\]]*(?=\])' | \
tr '\n," ' '\n' | sed 's/3\.//g;/^$/d' | sort -n -t. -k 1,1))
local min="${compatibles[0]}"
depends+=("gnome-shell>=$(prefix "${min%%.*}")3.$min")
if [ "${compatibles[-1]}" != $(
LD_PRELOAD= gnome-shell --version | \
grep -Po '(?<=GNOME Shell 3\.)[[:digit:]]+'
) ]; then
let max=${compatibles[-1]%%.*}+1
depends+=("gnome-shell<$(prefix "$max")3.$max")
fi
unset depends[125]
}
|