# Maintainer: Natanael Copa pkgname=wine pkgver=1.7.3 _ver=${pkgver/_/-} pkgrel=0 pkgdesc="A compatibility layer for running Windows programs" url="http://www.winehq.com" arch="x86" license="LGPL" 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" _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 && 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="8dc3815754f00ec315d61a6d14870320 wine-1.7.3.tar.bz2" sha256sums="c66c93c2ffec8d1d9922fbaa226b169d62deb77fcbfd0fbd7379b77dbd97d47f wine-1.7.3.tar.bz2" sha512sums="41109866b259a5f939c9ca4c26ed0a5ca74fa9cafa2f348b83510dd386459c87ac044a6f954f2f83ce00961d866a6e636ed96aa9e94584b7a79486d434b406cc wine-1.7.3.tar.bz2"