wok view wine/receipt @ rev 18227

wine: modify /etc/locale.conf for UTF-8 support
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Mon Jul 20 08:25:22 2015 +0200 (2015-07-20)
parents dfef8de3d270
children abecef518624
line source
1 # SliTaz package receipt.
3 PACKAGE="wine"
4 VERSION="1.7.16"
5 CATEGORY="misc"
6 SHORT_DESC="Windows API for Linux."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.winehq.org/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 TAGS="windows emulator" # wine is not an emulator
14 DEPENDS="alsa-lib libxml2 libxslt mesa libglu-mesa lcms freetype"
15 BUILD_DEPENDS="alsa-lib-dev flex bison mesa-dev freetype-dev libtool \
16 libglu-mesa-dev libxml2-dev libxslt-dev lcms-dev prelink \
17 jpeg-dev libpng-dev libv4l-dev gnutls-dev libgphoto2-dev cups-dev dbus-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
24 ./configure $CONFIGURE_ARGS &&
25 make $MAKEFLAGS && make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share
32 cp -a $install/usr/bin $fs/usr
33 cp -a $install/usr/lib $fs/usr
34 cp -a $install/usr/share/wine $fs/usr/share
35 }
37 post_install()
38 {
39 [ "$1" ] || modprobe snd-seq 2>/dev/null
41 # Enable unicode filenames and localized keyboard layouts input
42 . $1/etc/locale.conf
43 case $LANG in
44 (C|POSIX) echo $LANG - skip modifying /etc/locale.conf ;;
45 (*)
46 echo "$LANG changed to ${LANG}.UTF-8 in /etc/locale.conf"
47 echo "Restart/ReLogin required."
48 sed -i 's/$/&.UTF-8/' $1/etc/locale.conf ;;
49 esac
50 }