wok rev 23666

created recipe for spacefm-lang
author Hans-G?nter Theisgen
date Sat Apr 25 07:35:58 2020 +0100 (2020-04-25)
parents 84809abba7af
children fcb7b0646656
files spacefm-lang/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/spacefm-lang/receipt	Sat Apr 25 07:35:58 2020 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="spacefm-lang"
     1.7 +VERSION="1.0.6"
     1.8 +CATEGORY="system-tools"
     1.9 +TAGS="file-manager"
    1.10 +SHORT_DESC="Light, fast and easy to use file manager - localised messages."
    1.11 +MAINTAINER="maintainer@slitaz.org"
    1.12 +LICENSE="GPL3"
    1.13 +WEB_SITE="https://ignorantguru.github.io/spacefm"
    1.14 +
    1.15 +WANTED="spacefm"
    1.16 +
    1.17 +HOST_ARCH="any"
    1.18 +
    1.19 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.20 +genpkg_rules()
    1.21 +{
    1.22 +	mkdir -p $fs/usr/share/locale
    1.23 +
    1.24 +	# Copy all message files
    1.25 +	for mf in $install/usr/share/locale/*/LC_MESSAGES/spacefm.mo
    1.26 +	  do
    1.27 +		lang=${mf/\/LC_MESSAGES\/spacefm.mo/}	# remove suffix
    1.28 +		lang=${lang##*/}			# remove prefix
    1.29 +		mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
    1.30 +		cp -a $mf	$fs/usr/share/locale/$lang/LC_MESSAGES
    1.31 +	  done
    1.32 +}