# Contributor: Pedro Filipe # Contributor: Valery Kartel # Contributor: Sören Tempel # Contributor: Łukasz Jendrysik # Contributor: Martell Malone # Maintainer: Natanael Copa pkgname=wine pkgver=3.0.3 _pkgver=${pkgver/_/-} pkgrel=0 pkgdesc="A compatibility layer for running Windows programs" url="http://www.winehq.com" arch="x86 x86_64" license="LGPL-2.0-or-later" # As of 2.0.3 most of the tests fails options="!check" subpackages="$pkgname-libs $pkgname-dev $pkgname-doc" depends_dev="$pkgname perl" makedepends="fontconfig-dev openldap-dev libxslt-dev libxxf86dga-dev libxcursor-dev libxrandr-dev libxdamage-dev mesa-dev flex-dev bison libpng-dev libjpeg-turbo-dev freetype-dev ncurses-dev libressl-dev libxcomposite-dev libxrender-dev libxinerama-dev zlib-dev cups-dev alsa-lib-dev lcms-dev libxml2-dev paxmark dbus-dev libxi-dev gnutls-dev tiff-dev v4l-utils-dev udisks2-dev autoconf automake " source="http://dl.winehq.org/$pkgname/source/${pkgver%.[1-9]}/$pkgname-$_pkgver.tar.xz no-pie.patch winhlp32-flex.patch " builddir="$srcdir/$pkgname-$_pkgver" prepare() { cd "$builddir" default_prepare aclocal && autoheader && autoreconf } build() { cd "$builddir" case "$CARCH" in x86_64) _win64=--enable-win64;; esac ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --libdir=/usr/lib \ --sysconfdir=/etc \ --localstatedir=/var \ --with-dbus \ --with-x \ $_win64 make } check() { cd "$builddir" make test } package() { local file cd "$builddir" make -j1 DESTDIR="$pkgdir" install case "$CARCH" in x86_64) _wine="wine64";; *) _wine="wine";; esac paxmark -psmre "$pkgdir"/usr/bin/$_wine-preloader \ "$pkgdir"/usr/bin/$_wine install -Dm755 tools/wineapploader \ "$pkgdir"/usr/bin/wineapploader for file in msiexec notepad regedit regsvr32 wineboot \ winecfg wineconsole winefile winemine winepath do rm "$pkgdir"/usr/bin/$file ln -sf /usr/bin/wineapploader "$pkgdir"/usr/bin/$file done } dev() { local file default_dev install -d "$subpkgdir"/usr/bin for file in widl wmc wrc winebuild winedump function_grep.pl \ winedbg winemaker winegcc winecpp wineg++ do mv "$pkgdir"/usr/bin/$file "$subpkgdir"/usr/bin/ done install -d "$subpkgdir"/usr/lib/wine mv "$pkgdir"/usr/lib/wine/*.def "$subpkgdir"/usr/lib/wine/ } doc() { default_doc rm -fr "$subpkgdir"/usr/share/man/*.UTF-8 } libs() { local file ext default_libs install -d "$subpkgdir"/usr/lib/wine/fakedlls for ext in dll16 drv16 exe16 acm dll drv ds ocx sys tlb vxd; do for file in $(find "$pkgdir/usr/lib/wine/fakedlls" -name "*.$ext"); do mv "$pkgdir"/usr/lib/wine/fakedlls/${file##*/} \ "$subpkgdir"/usr/lib/wine/fakedlls/ mv "$pkgdir"/usr/lib/wine/${file##*/}.so \ "$subpkgdir"/usr/lib/wine/ done done } sha512sums="11043a9a9434681f9c73590688b600b3b9e3d311be2c4d97b5f58f0740500ebcfbdc826bd6584d5dd392dccbdd9389ffa04c8fedbba43a4df2e6aeb922414412 wine-3.0.3.tar.xz d853875f7d659617bdfba364704abd75b760d12977f1f13acc73acb3c8fefec0549677fb79a4f8955e073d64078b3071d63d97262522e22b7832a66d3d820a9c no-pie.patch 522a94a31fc459e80ea7dd05f7aee64f6ae666ec05236d06614acde118d5c60002e0f253ae75edb5f02164f22937ca89578504b690d1a5611bd60f703c8f0c00 winhlp32-flex.patch"