Date: Wednesday, January 25, 2017 @ 05:05:12 Author: felixonmars Revision: 208955
archrelease: copy trunk to community-i686 Added: wine/repos/community-i686/0001-winhlp32-Workaround-a-bug-in-Flex.patch (from rev 208954, wine/trunk/0001-winhlp32-Workaround-a-bug-in-Flex.patch) wine/repos/community-i686/30-win32-aliases.conf (from rev 208954, wine/trunk/30-win32-aliases.conf) wine/repos/community-i686/PKGBUILD (from rev 208954, wine/trunk/PKGBUILD) Deleted: wine/repos/community-i686/0001-winhlp32-Workaround-a-bug-in-Flex.patch wine/repos/community-i686/30-win32-aliases.conf wine/repos/community-i686/PKGBUILD ----------------------------------------------+ 0001-winhlp32-Workaround-a-bug-in-Flex.patch | 66 ++-- 30-win32-aliases.conf | 40 +- PKGBUILD | 366 ++++++++++++------------- 3 files changed, 236 insertions(+), 236 deletions(-) Deleted: 0001-winhlp32-Workaround-a-bug-in-Flex.patch =================================================================== --- 0001-winhlp32-Workaround-a-bug-in-Flex.patch 2017-01-25 04:59:48 UTC (rev 208954) +++ 0001-winhlp32-Workaround-a-bug-in-Flex.patch 2017-01-25 05:05:12 UTC (rev 208955) @@ -1,33 +0,0 @@ -From cf6bdd7b7dc1dc1ba31bd48171c218ba3503eb76 Mon Sep 17 00:00:00 2001 -From: Sebastian Lackner <sebast...@fds-team.de> -Date: Sat, 14 Jan 2017 05:48:28 +0100 -Subject: winhlp32: Workaround a bug in Flex. - ---- - programs/winhlp32/macro.lex.l | 6 +----- - 1 file changed, 1 insertion(+), 5 deletions(-) - -diff --git a/programs/winhlp32/macro.lex.l b/programs/winhlp32/macro.lex.l -index 8f6945ca988..da2dd22e447 100644 ---- a/programs/winhlp32/macro.lex.l -+++ b/programs/winhlp32/macro.lex.l -@@ -20,7 +20,7 @@ - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - */ - %} --%option noinput nounput never-interactive 8bit -+%option noinput nounput never-interactive 8bit noyywrap - %x quote - %{ - #include "config.h" -@@ -367,7 +367,3 @@ WINHELP_WINDOW* MACRO_CurrentWindow(void) - { - return lex_data ? lex_data->window : Globals.active_win; - } -- --#ifndef yywrap --int yywrap(void) { return 1; } --#endif --- -2.11.0 - Copied: wine/repos/community-i686/0001-winhlp32-Workaround-a-bug-in-Flex.patch (from rev 208954, wine/trunk/0001-winhlp32-Workaround-a-bug-in-Flex.patch) =================================================================== --- 0001-winhlp32-Workaround-a-bug-in-Flex.patch (rev 0) +++ 0001-winhlp32-Workaround-a-bug-in-Flex.patch 2017-01-25 05:05:12 UTC (rev 208955) @@ -0,0 +1,33 @@ +From cf6bdd7b7dc1dc1ba31bd48171c218ba3503eb76 Mon Sep 17 00:00:00 2001 +From: Sebastian Lackner <sebast...@fds-team.de> +Date: Sat, 14 Jan 2017 05:48:28 +0100 +Subject: winhlp32: Workaround a bug in Flex. + +--- + programs/winhlp32/macro.lex.l | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/programs/winhlp32/macro.lex.l b/programs/winhlp32/macro.lex.l +index 8f6945ca988..da2dd22e447 100644 +--- a/programs/winhlp32/macro.lex.l ++++ b/programs/winhlp32/macro.lex.l +@@ -20,7 +20,7 @@ + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + %} +-%option noinput nounput never-interactive 8bit ++%option noinput nounput never-interactive 8bit noyywrap + %x quote + %{ + #include "config.h" +@@ -367,7 +367,3 @@ WINHELP_WINDOW* MACRO_CurrentWindow(void) + { + return lex_data ? lex_data->window : Globals.active_win; + } +- +-#ifndef yywrap +-int yywrap(void) { return 1; } +-#endif +-- +2.11.0 + Deleted: 30-win32-aliases.conf =================================================================== --- 30-win32-aliases.conf 2017-01-25 04:59:48 UTC (rev 208954) +++ 30-win32-aliases.conf 2017-01-25 05:05:12 UTC (rev 208955) @@ -1,20 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> -<fontconfig> - <alias binding="same"> - <family>MS Shell Dlg</family> - <accept><family>Microsoft Sans Serif</family></accept> - <default><family>sans-serif</family></default> - </alias> - <alias binding="same"> - <family>MS Shell Dlg 2</family> - <accept><family>Tahoma</family></accept> - <default><family>sans-serif</family></default> - </alias> - - <alias binding="same"> - <family>MS Sans Serif</family> - <prefer><family>Microsoft Sans Serif</family></prefer> - <default><family>sans-serif</family></default> - </alias> -</fontconfig> Copied: wine/repos/community-i686/30-win32-aliases.conf (from rev 208954, wine/trunk/30-win32-aliases.conf) =================================================================== --- 30-win32-aliases.conf (rev 0) +++ 30-win32-aliases.conf 2017-01-25 05:05:12 UTC (rev 208955) @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + <alias binding="same"> + <family>MS Shell Dlg</family> + <accept><family>Microsoft Sans Serif</family></accept> + <default><family>sans-serif</family></default> + </alias> + <alias binding="same"> + <family>MS Shell Dlg 2</family> + <accept><family>Tahoma</family></accept> + <default><family>sans-serif</family></default> + </alias> + + <alias binding="same"> + <family>MS Sans Serif</family> + <prefer><family>Microsoft Sans Serif</family></prefer> + <default><family>sans-serif</family></default> + </alias> +</fontconfig> Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-01-25 04:59:48 UTC (rev 208954) +++ PKGBUILD 2017-01-25 05:05:12 UTC (rev 208955) @@ -1,183 +0,0 @@ -# $Id$ -# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> -# Contributor: Jan "heftig" Steffens <jan.steff...@gmail.com> -# Contributor: Eduardo Romero <edua...@archlinux.org> -# Contributor: Giovanni Scafora <giova...@archlinux.org> - -pkgname=wine -pkgver=2.0rc6 -pkgrel=1 - -_pkgbasever=${pkgver/rc/-rc} - -source=(https://dl.winehq.org/wine/source/2.0/$pkgname-$_pkgbasever.tar.bz2{,.sign} - 30-win32-aliases.conf - 0001-winhlp32-Workaround-a-bug-in-Flex.patch) -sha1sums=('61b87fd7188f0ecb1c3005fb8b454bd78be67ec2' - 'SKIP' - '023a5c901c6a091c56e76b6a62d141d87cce9fdb' - '6ab256347d41e63694528db9e093c0abe8ca4bc1') -validpgpkeys=(5AC1A08B03BD7A313E0A955AF5E6E9EEB9461DD7 - DA23579A74D4AD9AF9D3F945CEFAC8EAAF17519D) - -pkgdesc="A compatibility layer for running Windows programs" -url="http://www.winehq.com" -arch=(i686 x86_64) -options=(staticlibs) -license=(LGPL) - -_depends=( - fontconfig lib32-fontconfig - lcms2 lib32-lcms2 - libxml2 lib32-libxml2 - libxcursor lib32-libxcursor - libxrandr lib32-libxrandr - libxdamage lib32-libxdamage - libxi lib32-libxi - gettext lib32-gettext - freetype2 lib32-freetype2 - glu lib32-glu - libsm lib32-libsm - gcc-libs lib32-gcc-libs - libpcap lib32-libpcap - desktop-file-utils -) - -makedepends=(autoconf ncurses bison perl fontforge flex - 'gcc>=4.5.0-2' 'gcc-multilib>=4.5.0-2' - giflib lib32-giflib - libpng lib32-libpng - gnutls lib32-gnutls - libxinerama lib32-libxinerama - libxcomposite lib32-libxcomposite - libxmu lib32-libxmu - libxxf86vm lib32-libxxf86vm - libldap lib32-libldap - mpg123 lib32-mpg123 - openal lib32-openal - v4l-utils lib32-v4l-utils - libpulse lib32-libpulse - alsa-lib lib32-alsa-lib - libxcomposite lib32-libxcomposite - mesa lib32-mesa - mesa-libgl lib32-mesa-libgl - opencl-icd-loader lib32-opencl-icd-loader - libxslt lib32-libxslt - gst-plugins-base-libs lib32-gst-plugins-base-libs - samba - opencl-headers -) - -optdepends=( - giflib lib32-giflib - libpng lib32-libpng - libldap lib32-libldap - gnutls lib32-gnutls - mpg123 lib32-mpg123 - openal lib32-openal - v4l-utils lib32-v4l-utils - libpulse lib32-libpulse - alsa-plugins lib32-alsa-plugins - alsa-lib lib32-alsa-lib - libjpeg-turbo lib32-libjpeg-turbo - libxcomposite lib32-libxcomposite - libxinerama lib32-libxinerama - ncurses lib32-ncurses - opencl-icd-loader lib32-opencl-icd-loader - libxslt lib32-libxslt - gst-plugins-base-libs lib32-gst-plugins-base-libs - cups - samba dosbox -) - -if [[ $CARCH == i686 ]]; then - # Strip lib32 etc. on i686 - _depends=(${_depends[@]/*32-*/}) - makedepends=(${makedepends[@]/*32-*/} ${_depends[@]}) - makedepends=(${makedepends[@]/*-multilib*/}) - optdepends=(${optdepends[@]/*32-*/}) -else - makedepends=(${makedepends[@]} ${_depends[@]}) - provides=("bin32-wine=$pkgver" "wine-wow64=$pkgver") - conflicts=('bin32-wine' 'wine-wow64') - replaces=('bin32-wine') -fi - -prepare() { - # Allow ccache to work - mv $pkgname-$_pkgbasever $pkgname - - # https://bugs.winehq.org/show_bug.cgi?id=42132 - (cd $pkgname; patch -p1 -i ../0001-winhlp32-Workaround-a-bug-in-Flex.patch) - - sed 's|OpenCL/opencl.h|CL/opencl.h|g' -i $pkgname/configure* - - # Get rid of old build dirs - rm -rf $pkgname-{32,64}-build - mkdir $pkgname-32-build -} - -build() { - cd "$srcdir" - - if [[ $CARCH == x86_64 ]]; then - msg2 "Building Wine-64..." - - mkdir $pkgname-64-build - cd "$srcdir/$pkgname-64-build" - ../$pkgname/configure \ - --prefix=/usr \ - --libdir=/usr/lib \ - --with-x \ - --with-gstreamer \ - --enable-win64 - # Gstreamer was disabled for FS#33655 - - make - - _wine32opts=( - --libdir=/usr/lib32 - --with-wine64="$srcdir/$pkgname-64-build" - ) - - export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" - fi - - msg2 "Building Wine-32..." - cd "$srcdir/$pkgname-32-build" - ../$pkgname/configure \ - --prefix=/usr \ - --with-x \ - --with-gstreamer \ - "${_wine32opts[@]}" - - make -} - -package() { - depends=(${_depends[@]}) - - msg2 "Packaging Wine-32..." - cd "$srcdir/$pkgname-32-build" - - if [[ $CARCH == i686 ]]; then - make prefix="$pkgdir/usr" install - else - make prefix="$pkgdir/usr" \ - libdir="$pkgdir/usr/lib32" \ - dlldir="$pkgdir/usr/lib32/wine" install - - msg2 "Packaging Wine-64..." - cd "$srcdir/$pkgname-64-build" - make prefix="$pkgdir/usr" \ - libdir="$pkgdir/usr/lib" \ - dlldir="$pkgdir/usr/lib/wine" install - fi - - # Font aliasing settings for Win32 applications - install -d "$pkgdir"/etc/fonts/conf.{avail,d} - install -m644 "$srcdir/30-win32-aliases.conf" "$pkgdir/etc/fonts/conf.avail" - ln -s ../conf.avail/30-win32-aliases.conf "$pkgdir/etc/fonts/conf.d/30-win32-aliases.conf" -} - -# vim:set ts=8 sts=2 sw=2 et: Copied: wine/repos/community-i686/PKGBUILD (from rev 208954, wine/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-01-25 05:05:12 UTC (rev 208955) @@ -0,0 +1,183 @@ +# $Id$ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Jan "heftig" Steffens <jan.steff...@gmail.com> +# Contributor: Eduardo Romero <edua...@archlinux.org> +# Contributor: Giovanni Scafora <giova...@archlinux.org> + +pkgname=wine +pkgver=2.0 +pkgrel=1 + +_pkgbasever=${pkgver/rc/-rc} + +source=(https://dl.winehq.org/wine/source/2.0/$pkgname-$_pkgbasever.tar.bz2{,.sign} + 30-win32-aliases.conf + 0001-winhlp32-Workaround-a-bug-in-Flex.patch) +sha1sums=('3f433d564eb661e7d384871bc4a102eee12638b9' + 'SKIP' + '023a5c901c6a091c56e76b6a62d141d87cce9fdb' + '6ab256347d41e63694528db9e093c0abe8ca4bc1') +validpgpkeys=(5AC1A08B03BD7A313E0A955AF5E6E9EEB9461DD7 + DA23579A74D4AD9AF9D3F945CEFAC8EAAF17519D) + +pkgdesc="A compatibility layer for running Windows programs" +url="http://www.winehq.com" +arch=(i686 x86_64) +options=(staticlibs) +license=(LGPL) + +_depends=( + fontconfig lib32-fontconfig + lcms2 lib32-lcms2 + libxml2 lib32-libxml2 + libxcursor lib32-libxcursor + libxrandr lib32-libxrandr + libxdamage lib32-libxdamage + libxi lib32-libxi + gettext lib32-gettext + freetype2 lib32-freetype2 + glu lib32-glu + libsm lib32-libsm + gcc-libs lib32-gcc-libs + libpcap lib32-libpcap + desktop-file-utils +) + +makedepends=(autoconf ncurses bison perl fontforge flex + 'gcc>=4.5.0-2' 'gcc-multilib>=4.5.0-2' + giflib lib32-giflib + libpng lib32-libpng + gnutls lib32-gnutls + libxinerama lib32-libxinerama + libxcomposite lib32-libxcomposite + libxmu lib32-libxmu + libxxf86vm lib32-libxxf86vm + libldap lib32-libldap + mpg123 lib32-mpg123 + openal lib32-openal + v4l-utils lib32-v4l-utils + libpulse lib32-libpulse + alsa-lib lib32-alsa-lib + libxcomposite lib32-libxcomposite + mesa lib32-mesa + mesa-libgl lib32-mesa-libgl + opencl-icd-loader lib32-opencl-icd-loader + libxslt lib32-libxslt + gst-plugins-base-libs lib32-gst-plugins-base-libs + samba + opencl-headers +) + +optdepends=( + giflib lib32-giflib + libpng lib32-libpng + libldap lib32-libldap + gnutls lib32-gnutls + mpg123 lib32-mpg123 + openal lib32-openal + v4l-utils lib32-v4l-utils + libpulse lib32-libpulse + alsa-plugins lib32-alsa-plugins + alsa-lib lib32-alsa-lib + libjpeg-turbo lib32-libjpeg-turbo + libxcomposite lib32-libxcomposite + libxinerama lib32-libxinerama + ncurses lib32-ncurses + opencl-icd-loader lib32-opencl-icd-loader + libxslt lib32-libxslt + gst-plugins-base-libs lib32-gst-plugins-base-libs + cups + samba dosbox +) + +if [[ $CARCH == i686 ]]; then + # Strip lib32 etc. on i686 + _depends=(${_depends[@]/*32-*/}) + makedepends=(${makedepends[@]/*32-*/} ${_depends[@]}) + makedepends=(${makedepends[@]/*-multilib*/}) + optdepends=(${optdepends[@]/*32-*/}) +else + makedepends=(${makedepends[@]} ${_depends[@]}) + provides=("bin32-wine=$pkgver" "wine-wow64=$pkgver") + conflicts=('bin32-wine' 'wine-wow64') + replaces=('bin32-wine') +fi + +prepare() { + # Allow ccache to work + mv $pkgname-$_pkgbasever $pkgname + + # https://bugs.winehq.org/show_bug.cgi?id=42132 + (cd $pkgname; patch -p1 -i ../0001-winhlp32-Workaround-a-bug-in-Flex.patch) + + sed 's|OpenCL/opencl.h|CL/opencl.h|g' -i $pkgname/configure* + + # Get rid of old build dirs + rm -rf $pkgname-{32,64}-build + mkdir $pkgname-32-build +} + +build() { + cd "$srcdir" + + if [[ $CARCH == x86_64 ]]; then + msg2 "Building Wine-64..." + + mkdir $pkgname-64-build + cd "$srcdir/$pkgname-64-build" + ../$pkgname/configure \ + --prefix=/usr \ + --libdir=/usr/lib \ + --with-x \ + --with-gstreamer \ + --enable-win64 + # Gstreamer was disabled for FS#33655 + + make + + _wine32opts=( + --libdir=/usr/lib32 + --with-wine64="$srcdir/$pkgname-64-build" + ) + + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + fi + + msg2 "Building Wine-32..." + cd "$srcdir/$pkgname-32-build" + ../$pkgname/configure \ + --prefix=/usr \ + --with-x \ + --with-gstreamer \ + "${_wine32opts[@]}" + + make +} + +package() { + depends=(${_depends[@]}) + + msg2 "Packaging Wine-32..." + cd "$srcdir/$pkgname-32-build" + + if [[ $CARCH == i686 ]]; then + make prefix="$pkgdir/usr" install + else + make prefix="$pkgdir/usr" \ + libdir="$pkgdir/usr/lib32" \ + dlldir="$pkgdir/usr/lib32/wine" install + + msg2 "Packaging Wine-64..." + cd "$srcdir/$pkgname-64-build" + make prefix="$pkgdir/usr" \ + libdir="$pkgdir/usr/lib" \ + dlldir="$pkgdir/usr/lib/wine" install + fi + + # Font aliasing settings for Win32 applications + install -d "$pkgdir"/etc/fonts/conf.{avail,d} + install -m644 "$srcdir/30-win32-aliases.conf" "$pkgdir/etc/fonts/conf.avail" + ln -s ../conf.avail/30-win32-aliases.conf "$pkgdir/etc/fonts/conf.d/30-win32-aliases.conf" +} + +# vim:set ts=8 sts=2 sw=2 et: