wok view zenity/receipt @ rev 24419
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 11 11:14:46 2022 +0000 (2022-02-11) |
parents | 3828d7e5f56a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="zenity"
4 VERSION="3.32.0"
5 CATEGORY="development"
6 TAGS="dialogs gui"
7 SHORT_DESC="GUI dialogs."
8 MAINTAINER="allan316@gmail.com"
9 LICENSE="LGPL2"
10 WEB_SITE="https://wiki.gnome.org/Projects/Zenity"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
15 DEPENDS="gcc83-lib-base gtk+3 libglade libnotify"
16 BUILD_DEPENDS="docbook-xsl gcc83 gnome-doc-utils-dev gtk+3-dev
17 intltool itstool libglade-dev pkg-config"
19 current_version()
20 {
21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 CC=gcc-83 \
30 CXX=g++-83 \
31 --prefix=/usr \
32 --localstatedir=/var/lib \
33 --disable-scrollkeeper \
34 --infodir=/usr/share/info \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/share/zenity $fs/usr/share
48 # cp -a $install/usr/share/omf $fs/usr/share
50 # gdialog wrapper need to be executable.
51 chmod +x $fs/usr/bin/*
52 }