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

Add libgnt
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 19 17:37:48 2022 +0000 (2022-11-19)
parents ee1d44476432
children
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 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - $WEB_SITE 2>/dev/null | \
25 sed '/announce/!d;s|.*;||;s|<.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure $CONFIGURE_ARGS &&
32 make $MAKEFLAGS &&
33 make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib $fs/usr
43 cp -a $install/usr/share/wine $fs/usr/share
44 }
46 post_install()
47 {
48 [ "$1" ] || modprobe snd-seq 2>/dev/null
50 # Enable unicode filenames and localized keyboard layouts input
51 . "$1/etc/locale.conf"
52 case $LANG in
53 (C|POSIX|*UTF-8)
54 echo $LANG - skip modifying /etc/locale.conf ;;
55 (*)
56 echo "$LANG changed to ${LANG}.UTF-8 in /etc/locale.conf"
57 echo "Restart/ReLogin required."
58 sed -i 's/$/&.UTF-8/' "$1/etc/locale.conf" ;;
59 esac
60 }