# Maintainer: Natanael Copa pkgname=wine pkgver=1.7.17 _ver=${pkgver/_/-} pkgrel=0 pkgdesc="A compatibility layer for running Windows programs" url="http://www.winehq.com" arch="x86" license="LGPL2+" subpackages="$pkgname-dev $pkgname-doc" makedepends="fontconfig-dev openldap-dev libxslt-dev libxxf86dga-dev libxcursor-dev libxrandr-dev libxdamage-dev mesa-dev flex bison libpng-dev libjpeg-turbo-dev freetype-dev ncurses-dev openssl-dev libxcomposite-dev libxrender-dev libxinerama-dev zlib-dev cups-dev alsa-lib-dev lcms-dev libxml2-dev gstreamer-dev gst-plugins-base-dev paxctl dbus-dev libxi-dev gnutls-dev tiff-dev v4l-utils-dev udisks2-dev autoconf automake" source="http://downloads.sourceforge.net/project/wine/Source/wine-$_ver.tar.bz2 musl-fix.patch " _builddir="$srcdir"/$pkgname-$_ver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in \ || return 1 sed -i '/^MimeType/d' tools/wine.desktop || return 1 aclocal && autoheader && autoreconf || return 1 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --with-dbus \ --with-x \ || return 1 make } package() { cd "$_builddir" make -j1 prefix="$pkgdir"/usr install || return 1 mkdir -p "$pkgdir"/etc/wine paxctl -c -psmre "$pkgdir"/usr/bin/wine-preloader \ "$pkgdir"/usr/bin/wine } md5sums="f672039ddf29838be2ac38832da40d6d wine-1.7.17.tar.bz2 00e663cb263cc8cf1e93704ce5019cb7 musl-fix.patch" sha256sums="bb6fbd7fd70f9aafba557995d9ce537ded56e750e0a89a062e3318d584a8abef wine-1.7.17.tar.bz2 0d8da319944de067f716b3f7d09239682c917e51b4864bc1bbb27075afb0e4b7 musl-fix.patch" sha512sums="32ff77d201200cb8a159395fe5d410b118bf4db16a89a9708128dbb7c25e45457c80d76e2821edf06db99525e5a93b6b1a7ee7166d7972f7ceb7fc47aaf8784b wine-1.7.17.tar.bz2 3df740201ea8105546e56b9e79843d12cc678aa89ad2a84283210dabab0b8b8357baa96266773bcfa1b5434c11b8fec014c51778278daad45ccffcede3f4e9c4 musl-fix.patch"