wok view dargui/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | 69e1e705f038 |
children |
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|.*a href="|"https://sourceforge.net|;s| .*||;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 }