blob: cb203c8dcb0e209f5b8d6e9c2b8a722fa65c6944 (
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: Aleksandr Mezin <mezin.alexander@gmail.com>
# Contributor: Amiel Kyamko <junkfactory@gmail.com>
pkgname=gnome-shell-extension-ddterm
pkgver=63.2.3
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' 'libxslt')
checkdepends=('jq')
_max_gnome_shell_version=50
install="${pkgname}.install"
source=("https://github.com/ddterm/${pkgname}/releases/download/v${pkgver}/ddterm-${pkgver}.tar.gz")
sha256sums=('1a2aa3250f114c7cf61cb69ebfb3191d3bf12f7e7b584a21623eed480b15f377')
build() {
local meson_options=(
-Dtests=disabled
-Dtests_x11=disabled
-Dtests_wl_clipboard=disabled
)
arch-meson "ddterm-${pkgver}" build "${meson_options[@]}"
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}"
}
|