wok view dargui/receipt @ rev 25602
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 18 09:27:49 2023 +0000 (15 months ago) |
parents | 8ea0030e77cb |
children | 6b33f9da53d4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dargui"
4 VERSION="1.0" # last 32 bit version
5 CATEGORY="system-tools"
6 TAGS="backup gui"
7 SHORT_DESC="Graphical frontend for dar."
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="GPL"
10 WEB_SITE="https://sourceforge.net/projects/dargui/"
12 TARBALL="$PACKAGE-$VERSION-32bit.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 SUGGESTED="dargui-lang"
16 DEPENDS="at bash dar gtk+ xterm"
17 BUILD_DEPENDS="gettext-tools"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/dargui/files/dargui/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*/dargui/||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 mkdir -p $install/usr/share/locale
31 for pofile in $src/locales/*.po
32 do
33 lang=${pofile%.*} # remove suffix
34 lang=${lang##*.} # remove prefix
35 mkdir -p $install/usr/share/locale/$lang/LC_MESSAGES
36 msgfmt $pofile -o $install/usr/share/locale/$lang/LC_MESSAGES/$(basename ${pofile%.*.po}).mo
37 done
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/bin
44 mkdir -p $fs/usr/share/dargui
46 cp -a $src/dargui $fs/usr/bin
47 cp -a $src/scripts/* $fs/usr/share/dargui
48 cp -a $src/applications $fs/usr/share
49 cp -a $src/pixmaps $fs/usr/share
50 }