summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cbb6d06fbca6e0ad6a2ced2c6cae6fb5df8cee18 (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
# Based on the file created for Arch Linux by:
# Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Jan de Groot <jgc@archlinux.org>
# 
# Removed webkit2gtk dependency:
# https://github.com/QubesOS/qubes-issues/issues/3279
# https://bugs.archlinux.org/task/50548

pkgname=zenity-git
pkgver=3.30.0.r10.g3fe41e2
pkgrel=1
pkgdesc="Display graphical dialog boxes from shell scripts. Webkit-free version."
url="https://gitlab.gnome.org/GNOME/zenity"
arch=(x86_64)
license=(LGPL)
provides=("zenity=$pkgver")
conflicts=('zenity')
replaces=('zenity')
depends=('libnotify')
makedepends=(gettext gnome-common git itstool yelp-tools)
source=("git+https://gitlab.gnome.org/GNOME/zenity.git")
sha256sums=('SKIP')

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

prepare() {
  cd ${pkgname%-*}
  NOCONFIGURE=1 ./autogen.sh
}

build() {
  cd ${pkgname%-*}
  ./configure \
      --prefix=/usr \
      --sysconfdir=/etc \
      --disable-webkitgtk \
      --localstatedir=/var
  make
}

package() {
  cd ${pkgname%-*}
  make DESTDIR="${pkgdir}" install
}