aboutsummaryrefslogtreecommitdiffstats
path: root/testing/yad/APKBUILD
blob: 0b380db55a98590ff596c061de6c515bff29e14f (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=yad
pkgver=0.32.0
pkgrel=0
pkgdesc="A fork of zenity - display graphical dialogs from shell scripts or command line"
url="http://sourceforge.net/projects/yad-dialog"
arch="all"
license="GPL3"
depends="hicolor-icon-theme"
depends_dev="gtk+2.0-dev intltool"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://sourceforge.net/projects/yad-dialog/files/yad-0.32.0.tar.xz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--prefix=/usr \
		--enable-icon-browser \
		--disable-html
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="${pkgdir}" install
	mkdir -p "$pkgdir/usr/share/doc/$pkgname"
	cat >"$pkgdir"/usr/share/doc/$pkgname/README.alpine <<EOF
*** Icon cache not updated. Remember to run:
***
***   gtk-update-icon-cache -f -t /usr/share/icons/hicolor
EOF

}

md5sums="c4c7c64f86cc10383fb624e6659838de  yad-0.32.0.tar.xz"
sha256sums="108f0bf9b1b649106188e523e14f3f056ae0bba1251dd85c4756fae02512e4ae  yad-0.32.0.tar.xz"
sha512sums="f1bdcabeaed50e1c2a44cbf8091e09ad9ada0cd0205b0c0e9f403d080d068dedad478ac5b38286ceb39afef7a1884a13418ac7f6a96f88f0d6fbb5fd9f36780f  yad-0.32.0.tar.xz"