wok view xchm/receipt @ rev 25770
dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 11:29:23 2024 +0000 (2 months ago) |
parents | 92b662c0aa2d |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="xchm"
4 VERSION="1.23"
5 CATEGORY="utilities"
6 SHORT_DESC="Cross-platform GUI for chmlib"
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/rzvncj/xCHM"
11 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 WGET_URL="https://sourceforge.net/projects/xchm/files/xCHM/$PACKAGE-$VERSION/$TARBALL"
14 DEPENDS="wxWidgets28 chmlib xorg-libXdamage xorg-libXxf86vm"
15 BUILD_DEPENDS="wxWidgets28-dev chmlib-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure $CONFIGURE_ARGS &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/locale
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/share/locale/fr $fs/usr/share/locale
37 cp -a $install/usr/share/pixmaps $fs/usr/share
38 }