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