summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd96ccbe33b0242da47d91ca0e31b6f883080826 (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
# Based on the file created for Arch Linux by:
# Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Jan de Groot <jgc@archlinux.org>
# Contributor: Andrey Vetrov <vetrov at mail dot ru>
# Maintainer: Pellegrino Prevete <pellegrinoprevete at gmail dot com>
#
# Removed webkit2gtk dependency:
# https://github.com/QubesOS/qubes-issues/issues/3279
# https://bugs.archlinux.org/task/50548

# shellcheck disable=SC2034
_pkgname="zenity"
_variant="gtk4"
pkgname="${_pkgname}-${_variant}-git"
pkgver=3.32.0.r105.g55f7e47e
pkgrel=1
pkgdesc="Display graphical dialog boxes from shell scripts"
url="https://gitlab.gnome.org/GNOME/${_pkgname}"
_branch="${_variant}-port"
arch=(x86_64)
license=(LGPL)
provides=("${_pkgname}" "${_pkgname}-${_variant}")
conflicts=("${_pkgname}" "${_pkgname}-${_variant}")
depends=('libnotify')
makedepends=(meson yelp-tools)
source=("${_pkgname}::git+${url}#branch=${_branch}")
sha256sums=('SKIP')

pkgver() {
  cd "${_pkgname}" || exit
  git describe --long --tags | sed 's/^ZENITY_//;s/_/./g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "${_pkgname}" || exit
#  NOCONFIGURE=1 ./autogen.sh
}

build() {
  arch-meson "${_pkgname}" build
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs
}

# shellcheck disable=SC2154
package() {
  meson install -C build --destdir "${pkgdir}"
}