blob: 4b2d6efbf17ef177edd4743d1a9dc5ef363726b4 (
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
|
# 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')
_runtime_only_depends=('gnome-shell<=1:48.99' 'vte3' 'libhandy')
makedepends=('jq' 'meson' 'git' 'gtk4' 'libxslt' 'xorg-server-xvfb')
checkdepends=("${_runtime_only_depends[@]}" 'python-pytest' 'python-gobject' 'wl-clipboard')
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=$( ((CHECKFUNC)) && echo enabled || echo 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
local _max_gnome_shell_version
_max_gnome_shell_version="$(jq -r '."shell-version" | max' build/metadata.json)"
[[ "${_max_gnome_shell_version}" == *.* ]] || _max_gnome_shell_version="${_max_gnome_shell_version}.99"
test "${_runtime_only_depends[0]}" = "gnome-shell<=1:${_max_gnome_shell_version}"
}
check() {
LIBGL_ALWAYS_SOFTWARE=1 xvfb-run --auto-display --server-args=-noreset --wait=0 -- meson test -C build --print-errorlogs
}
package() {
depends=("${_runtime_only_depends[@]}")
meson install -C build --no-rebuild --destdir "${pkgdir}"
}
|