wok-next view wine/receipt @ rev 20428
Port changes from cooking wok: fake-sane, sane-backends.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jan 24 13:17:46 2018 +0200 (2018-01-24) |
parents | 51b5a0f8eb96 |
children | dd145c435e4b |
line source
1 # SliTaz package receipt.
3 PACKAGE="wine"
4 VERSION="2.5"
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.xz"
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 cups-dev dbus-dev \
17 jpeg-dev libpng-dev libv4l-dev gnutls-dev libgphoto2-dev xorg-dev zlib-dev "
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure $CONFIGURE_ARGS &&
23 make $MAKEFLAGS && make install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share
30 cp -a $install/usr/bin $fs/usr
31 cp -a $install/usr/lib $fs/usr
32 cp -a $install/usr/share/wine $fs/usr/share
33 }
35 post_install()
36 {
37 [ "$1" ] || modprobe snd-seq 2>/dev/null
39 # Enable unicode filenames and localized keyboard layouts input
40 . "$1/etc/locale.conf"
41 case $LANG in
42 (C|POSIX|*UTF-8) echo $LANG - skip modifying /etc/locale.conf ;;
43 (*)
44 echo "$LANG changed to ${LANG}.UTF-8 in /etc/locale.conf"
45 echo "Restart/ReLogin required."
46 sed -i 's/$/&.UTF-8/' "$1/etc/locale.conf" ;;
47 esac
48 }