wok-current view yad-gtk3/receipt @ rev 24353

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 03 12:55:23 2022 +0000 (2022-02-03)
parents 2537c708087e
children ad0bc3efbf37
line source
1 # SliTaz package receipt.
3 PACKAGE="yad-gtk3"
4 VERSION="0.40.0"
5 CATEGORY="utilities"
6 TAGS="gtk3"
7 SHORT_DESC="Yet Another Dialog (GTK+3)."
8 MAINTAINER="devl547@gmail.com"
9 LICENSE="GPL3"
10 WEB_SITE="https://sourceforge.net/projects/yad-dialog/"
12 TARBALL="yad-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/yad-dialog/$TARBALL"
15 PROVIDE="yad:gtk+3"
16 SIBLINGS="yad-gtk2 yad-gtk2-html"
17 DEPENDS="atk cairo gdk-pixbuf glib glibc-base gtk+3 libffi libgio pango pcre \
18 zlib"
19 BUILD_DEPENDS="gtk+3-dev"
21 current_version()
22 {
23 wget -O - https://sourceforge.net/projects/yad-dialog/files/ 2>/dev/null | \
24 sed "/yad-/!d;/tar/!d;s|.*yad-\\(.*\\).tar.*\".*|\\1|;q"
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 patch -p1 -i $WOK/yad-gtk2/stuff/ru.patch
32 ./configure \
33 --with-gtk=gtk3 \
34 --enable-icon-browser &&
35 make &&
36 make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cook_copy_files yad yad-icon-browser
43 cook_copy_icons
44 }