wok-current diff dargui/receipt @ rev 24464
created recipes for dargui and dargui-lang
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 17 11:06:13 2022 +0100 (2022-02-17) |
parents | |
children | 535c806240cc |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dargui/receipt Thu Feb 17 11:06:13 2022 +0100 1.3 @@ -0,0 +1,42 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="dargui" 1.7 +VERSION="1.0" # last 32 bit version 1.8 +CATEGORY="system-tools" 1.9 +TAGS="backup gui" 1.10 +SHORT_DESC="Graphical frontend for dar." 1.11 +MAINTAINER="maintainer@slitaz.org" 1.12 +LICENSE="GPL" 1.13 +WEB_SITE="https://dargui.sourceforge.net" 1.14 + 1.15 +TARBALL="$PACKAGE-$VERSION-32bit.tar.gz" 1.16 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.17 + 1.18 +SUGGESTED="dargui-lang" 1.19 +DEPENDS="at bash dar gtk+ xterm" 1.20 +BUILD_DEPENDS="gettext-tools" 1.21 + 1.22 +# Rules to configure and make the package. 1.23 +compile_rules() 1.24 +{ 1.25 + mkdir -p $install/usr/share/locale 1.26 + for pofile in $src/locales/*.po 1.27 + do 1.28 + lang=${pofile%.*} # remove suffix 1.29 + lang=${lang##*.} # remove prefix 1.30 + mkdir -p $install/usr/share/locale/$lang/LC_MESSAGES 1.31 + msgfmt $pofile -o $install/usr/share/locale/$lang/LC_MESSAGES/$(basename ${pofile%.*.po}).mo 1.32 + done 1.33 +} 1.34 + 1.35 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.36 +genpkg_rules() 1.37 +{ 1.38 + mkdir -p $fs/usr/bin 1.39 + mkdir -p $fs/usr/share/dargui 1.40 + 1.41 + cp -a $src/dargui $fs/usr/bin 1.42 + cp -a $src/scripts/* $fs/usr/share/dargui 1.43 + cp -a $src/applications $fs/usr/share 1.44 + cp -a $src/pixmaps $fs/usr/share 1.45 +}