blob: 009a48c93c4636524765ca808fb889e525b735e8 (
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
|
# Maintainer: Aleksandr Mezin <mezin.alexander@gmail.com>
# Contributor: Amiel Kyamko <junkfactory@gmail.com>
pkgname=gnome-shell-extension-ddterm
pkgver=59
pkgrel=1
pkgdesc='Another Drop Down Terminal Extension for GNOME Shell'
arch=('any')
url='https://github.com/ddterm/gnome-shell-extension-ddterm'
license=('GPL-3.0-or-later')
depends=('gjs' 'gtk3')
makedepends=('meson' 'git' 'gtk4' 'libxslt' 'xorg-server-xvfb')
checkdepends=('jq')
_max_gnome_shell_version=48
install="${pkgname}.install"
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/ddterm/gnome-shell-extension-ddterm/archive/refs/tags/v${pkgver}.tar.gz"
)
sha256sums=('43653f7cb26b1d5d824cbf4958b510cc2543cb0fd2adca3e80f9d0542ada1404')
build() {
arch-meson "${pkgname}-${pkgver}" build -Dlinters=disabled -Dtests=disabled
# gtk-builder-tool needs X or Wayland
LIBGL_ALWAYS_SOFTWARE=1 xvfb-run --auto-display --server-args=-noreset --wait=0 -- meson compile -C build
}
check() {
# Currently, GNOME Shell checks only the major part of the version when loading the extension
test "$_max_gnome_shell_version" = "$(jq '."shell-version" | map(sub("\\D.*"; "") | tonumber) | max' build/metadata.json)"
}
package() {
depends+=("gnome-shell<=1:${_max_gnome_shell_version}.99" 'vte3' 'libhandy')
meson install -C build --no-rebuild --destdir "${pkgdir}"
}
|