wok annotate dargui/receipt @ rev 25014
updated opencc, openss-dev and opencc-tools (1.0.5 -> 1.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Tue May 17 07:50:08 2022 +0100 (2022-05-17) |
parents | 44b38e4dce38 |
children | 8ea0030e77cb |
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" |
Hans-G?nter@24464 | 10 WEB_SITE="https://dargui.sourceforge.net" |
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 } |