wok view dpkg-lang/receipt @ rev 24110

rdesktop: add debian patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 28 10:48:56 2021 +0000 (2021-09-28)
parents f50df67fd4a4
children
line source
1 # SliTaz package receipt.
3 PACKAGE="dpkg-lang"
4 VERSION="1.17.27"
5 CATEGORY="misc"
6 SHORT_DESC="Debian package management system - message files."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.debian.org/dpkg"
11 WANTED="dpkg"
13 HOST_ARCH="any"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/share/locale
20 # Copy all message files
21 for mf in $install/usr/share/locale/*/LC_MESSAGES/dpkg.mo
22 do
23 lang=${mf/\/LC_MESSAGES\/dpkg.mo/} # remove suffix
24 lang=${lang##*/} # remove prefix
25 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
26 cp -a $mf $fs/usr/share/locale/$lang/LC_MESSAGES
27 done
28 for mf in $install/usr/share/locale/*/LC_MESSAGES/dselect.mo
29 do
30 lang=${mf/\/LC_MESSAGES\/dselect.mo/} # remove suffix
31 lang=${lang##*/} # remove prefix
32 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
33 cp -a $mf $fs/usr/share/locale/$lang/LC_MESSAGES
34 done
35 }