wok-6.x view wine/receipt @ rev 23984

linld: fix bootiso/strhead
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 25 20:41:41 2020 +0000 (2020-11-25)
parents a767124ef9da
children 535c806240cc
line source
1 # SliTaz package receipt.
3 PACKAGE="wine"
4 VERSION="5.0"
5 CATEGORY="misc"
6 TAGS="windows emulator" # wine is not an emulator
7 SHORT_DESC="Windows API for Linux."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="LGPL2.1"
10 WEB_SITE="https://www.winehq.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://dl.winehq.org/$PACKAGE/source/${VERSION}/$TARBALL"
15 DEPENDS="alsa-lib freetype lcms libglu-mesa libxml2 libxslt mesa"
16 BUILD_DEPENDS="alsa-lib-dev bison cups-dev dbus-dev flex freetype-dev
17 gnutls-dev jpeg-dev lcms-dev libglu-mesa-dev libgphoto2-dev
18 libpng-dev libtool libv4l-dev libxml2-dev libxslt-dev
19 mesa-dev prelink"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 ./configure $CONFIGURE_ARGS &&
25 make $MAKEFLAGS &&
26 make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share
34 cp -a $install/usr/bin $fs/usr
35 cp -a $install/usr/lib $fs/usr
36 cp -a $install/usr/share/wine $fs/usr/share
37 }
39 post_install()
40 {
41 [ "$1" ] || modprobe snd-seq 2>/dev/null
43 # Enable unicode filenames and localized keyboard layouts input
44 . "$1/etc/locale.conf"
45 case $LANG in
46 (C|POSIX|*UTF-8)
47 echo $LANG - skip modifying /etc/locale.conf ;;
48 (*)
49 echo "$LANG changed to ${LANG}.UTF-8 in /etc/locale.conf"
50 echo "Restart/ReLogin required."
51 sed -i 's/$/&.UTF-8/' "$1/etc/locale.conf" ;;
52 esac
53 }