wok-next annotate wine/receipt @ rev 21036

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Nov 06 14:32:27 2018 +0200 (2018-11-06)
parents 10df65db91ad
children 5669e8b3be70
rev   line source
al@20456 1 # SliTaz package receipt v2.
pascal@925 2
pascal@925 3 PACKAGE="wine"
psychomaniak@20045 4 VERSION="2.5"
pascal@1423 5 CATEGORY="misc"
al@20456 6 SHORT_DESC="Windows API for Linux"
pascal@925 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15363 8 LICENSE="LGPL2.1"
al@21020 9 WEB_SITE="https://www.winehq.org/"
al@20456 10
psychomaniak@20045 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
slaxemulator@10227 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@925 13
pankso@12161 14 BUILD_DEPENDS="alsa-lib-dev flex bison mesa-dev freetype-dev libtool \
al@20502 15 glu-dev libxml2-dev libxslt-dev lcms-dev prelink cups-dev dbus-dev \
al@20604 16 jpeg-dev libpng16-dev v4l-utils-dev gnutls-dev libgphoto2-dev xorg-dev zlib-dev"
al@21020 17 SPLIT="$PACKAGE-dev"
pankso@12161 18
al@20456 19 compile_rules() {
slaxemulator@10227 20 ./configure $CONFIGURE_ARGS &&
gokhlayeh@11574 21 make $MAKEFLAGS && make install
pascal@925 22 }
pascal@925 23
al@20456 24 genpkg_rules() {
al@20456 25 case $PACKAGE in
al@20456 26 wine)
al@20456 27 mkdir -p $fs/usr/share
al@20456 28 cp -a $install/usr/bin $fs/usr
al@20456 29 cp -a $install/usr/lib $fs/usr
al@20456 30 cp -a $install/usr/share/wine $fs/usr/share
al@20502 31 DEPENDS="alsa-lib libxml2 libxslt mesa glu lcms freetype"
al@20456 32 TAGS="windows"
al@20456 33 ;;
al@20456 34 *-dev)
al@20456 35 mkdir -p $fs/usr/lib/wine $fs/usr/share
al@20456 36 cp -a $install/usr/include $fs/usr
al@20456 37 cp -a $install/usr/lib/wine/*.a $fs/usr/lib/wine
al@20456 38 cp -a $install/usr/lib/wine/*.def* $fs/usr/lib/wine
al@20456 39 ;;
al@20456 40 esac
pascal@925 41 }
pascal@925 42
al@20456 43 post_install_wine() {
pascal@17552 44 [ "$1" ] || modprobe snd-seq 2>/dev/null
psychomaniak@18227 45
psychomaniak@18227 46 # Enable unicode filenames and localized keyboard layouts input
pascal@18730 47 . "$1/etc/locale.conf"
psychomaniak@18227 48 case $LANG in
al@20456 49 C|POSIX|*UTF-8)
al@20456 50 echo "$LANG - skip modifying /etc/locale.conf"
al@20456 51 ;;
al@20456 52 *)
al@20456 53 echo "$LANG changed to $LANG.UTF-8 in /etc/locale.conf"
al@20456 54 echo "Restart/ReLogin required."
al@20456 55 sed -i 's/$/&.UTF-8/' "$1/etc/locale.conf"
al@20456 56 ;;
psychomaniak@18227 57 esac
pankso@4259 58 }