wok annotate wine/receipt @ rev 24396
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 08 12:15:27 2022 +0000 (2022-02-08) |
parents | a767124ef9da |
children | 535c806240cc |
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@925 | 21 # Rules to configure and make the package. |
pascal@925 | 22 compile_rules() |
pascal@925 | 23 { |
slaxemulator@10227 | 24 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@22132 | 25 make $MAKEFLAGS && |
Hans-G?nter@22132 | 26 make install |
pascal@925 | 27 } |
pascal@925 | 28 |
pascal@925 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@925 | 30 genpkg_rules() |
pascal@925 | 31 { |
mojo@14724 | 32 mkdir -p $fs/usr/share |
Hans-G?nter@23733 | 33 |
Hans-G?nter@22132 | 34 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22132 | 35 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@22132 | 36 cp -a $install/usr/share/wine $fs/usr/share |
pascal@925 | 37 } |
pascal@925 | 38 |
pankso@4259 | 39 post_install() |
pankso@4259 | 40 { |
pascal@17552 | 41 [ "$1" ] || modprobe snd-seq 2>/dev/null |
psychomaniak@18227 | 42 |
psychomaniak@18227 | 43 # Enable unicode filenames and localized keyboard layouts input |
pascal@18730 | 44 . "$1/etc/locale.conf" |
psychomaniak@18227 | 45 case $LANG in |
Hans-G?nter@22132 | 46 (C|POSIX|*UTF-8) |
Hans-G?nter@22132 | 47 echo $LANG - skip modifying /etc/locale.conf ;; |
psychomaniak@18227 | 48 (*) |
Hans-G?nter@22132 | 49 echo "$LANG changed to ${LANG}.UTF-8 in /etc/locale.conf" |
Hans-G?nter@22132 | 50 echo "Restart/ReLogin required." |
Hans-G?nter@22132 | 51 sed -i 's/$/&.UTF-8/' "$1/etc/locale.conf" ;; |
psychomaniak@18227 | 52 esac |
pankso@4259 | 53 } |