summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ab249140ddce5717f0442fd1a2a8c9eb5a6d33e7 (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
# Maintainer: sfs sfslinux@gmail.com

pkgname=yad-light
_pkgname=yad
pkgver=14.1
pkgrel=3
pkgdesc='A fork of zenity - display graphical dialogs from shell scripts or command line w\o html, spell, sourceview'
url='https://github.com/v1cont/yad'
arch=('x86_64')
license=('GPL3')
depends=('gtk3')
makedepends=('autoconf' 'automake' 'intltool')
source=("https://git.altlinux.org/tasks/398769/build/100/x86_64/srpm/yad-14.1-alt1.src.rpm")
sha256sums=('520dc26b56c2da198798d65a34f19f409c2d4ff8721f1ad12c2a0be460935594')
replaces=('yad')
provides=('yad')
conflicts=('yad' 'yad-git' 'yad-gtk2')

prepare() {
  tar -xf v14.1.tar.gz
  cd "${srcdir}/${_pkgname}-${pkgver}"
  cp ../ru.po po && echo ru >> po/LINGUAS
#  patch -Np0 -i ../fix-missing-buttons.patch 
  patch -Np1 -i ../show-cursor-initially.patch 
  # use webkit2gtk-4.1
  sed -i 's|webkit2gtk-4.0|webkit2gtk-4.1|' configure.ac

  autoreconf -ivf
  intltoolize
}

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  ./configure \
    --prefix=/usr \
    --enable-icon-browser \
    --disable-html \
    --disable-spell \
    --disable-sourceview

  make
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
}