wok-current view dargui/receipt @ rev 25383
updated units (2.19 -> 2.21)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 17:22:12 2022 +0100 (2022-07-30) |
parents | 44b38e4dce38 |
children | 8ea0030e77cb |
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://dargui.sourceforge.net"
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 }