wok annotate wine/receipt @ rev 25135
updated phpfm (0.9.8 -> 1.7.9)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 10:56:29 2022 +0100 (2022-06-29) |
parents | ee1d44476432 |
children |
rev | line source |
---|---|
pascal@925 | 1 # SliTaz package receipt. |
pascal@925 | 2 |
pascal@925 | 3 PACKAGE="wine" |
Hans-G?nter@23733 | 4 VERSION="5.0" |
pascal@1423 | 5 CATEGORY="misc" |
Hans-G?nter@22132 | 6 TAGS="windows emulator" # wine is not an emulator |
pascal@925 | 7 SHORT_DESC="Windows API for Linux." |
pascal@925 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15363 | 9 LICENSE="LGPL2.1" |
Hans-G?nter@22132 | 10 WEB_SITE="https://www.winehq.org/" |
Hans-G?nter@22132 | 11 |
devl547@19886 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@23733 | 13 WGET_URL="https://dl.winehq.org/$PACKAGE/source/${VERSION}/$TARBALL" |
pascal@925 | 14 |
Hans-G?nter@22132 | 15 DEPENDS="alsa-lib freetype lcms libglu-mesa libxml2 libxslt mesa" |
Hans-G?nter@22132 | 16 BUILD_DEPENDS="alsa-lib-dev bison cups-dev dbus-dev flex freetype-dev |
Hans-G?nter@22132 | 17 gnutls-dev jpeg-dev lcms-dev libglu-mesa-dev libgphoto2-dev |
Hans-G?nter@22132 | 18 libpng-dev libtool libv4l-dev libxml2-dev libxslt-dev |
Hans-G?nter@22132 | 19 mesa-dev prelink" |
pankso@12161 | 20 |
pascal@24465 | 21 # What is the latest version available today? |
pascal@24465 | 22 current_version() |
pascal@24465 | 23 { |
pascal@24465 | 24 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24465 | 25 sed '/announce/!d;s|.*;||;s|<.*||;q' |
pascal@24465 | 26 } |
pascal@24465 | 27 |
pascal@925 | 28 # Rules to configure and make the package. |
pascal@925 | 29 compile_rules() |
pascal@925 | 30 { |
slaxemulator@10227 | 31 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@22132 | 32 make $MAKEFLAGS && |
Hans-G?nter@22132 | 33 make install |
pascal@925 | 34 } |
pascal@925 | 35 |
pascal@925 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@925 | 37 genpkg_rules() |
pascal@925 | 38 { |
mojo@14724 | 39 mkdir -p $fs/usr/share |
Hans-G?nter@23733 | 40 |
Hans-G?nter@22132 | 41 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22132 | 42 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@22132 | 43 cp -a $install/usr/share/wine $fs/usr/share |
pascal@925 | 44 } |
pascal@925 | 45 |
pankso@4259 | 46 post_install() |
pankso@4259 | 47 { |
pascal@17552 | 48 [ "$1" ] || modprobe snd-seq 2>/dev/null |
psychomaniak@18227 | 49 |
psychomaniak@18227 | 50 # Enable unicode filenames and localized keyboard layouts input |
pascal@18730 | 51 . "$1/etc/locale.conf" |
psychomaniak@18227 | 52 case $LANG in |
Hans-G?nter@22132 | 53 (C|POSIX|*UTF-8) |
Hans-G?nter@22132 | 54 echo $LANG - skip modifying /etc/locale.conf ;; |
psychomaniak@18227 | 55 (*) |
Hans-G?nter@22132 | 56 echo "$LANG changed to ${LANG}.UTF-8 in /etc/locale.conf" |
Hans-G?nter@22132 | 57 echo "Restart/ReLogin required." |
Hans-G?nter@22132 | 58 sed -i 's/$/&.UTF-8/' "$1/etc/locale.conf" ;; |
psychomaniak@18227 | 59 esac |
pankso@4259 | 60 } |