# Maintainer: Natanael Copa pkgname=wine pkgver=1.3.28 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 jpeg-dev freetype-dev ncurses-dev openssl-dev libxcomposite-dev libxrender-dev libxinerama-dev zlib-dev fontconfig-dev cups-dev alsa-lib-dev lcms-dev libxml2-dev gstreamer-dev gst-plugins-base-dev paxctl autoconf automake" source="http://ibiblio.org/pub/linux/system/emulators/$pkgname/$pkgname-$pkgver.tar.bz2 dn_skipname.patch uclibc-fmaxf-fminf.patch " _builddir="$srcdir"/$pkgname-$pkgver 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 --prefix=/usr \ --sysconfdir=/etc/wine \ --with-x make depend && make } package() { cd "$srcdir"/$pkgname-$pkgver make prefix="$pkgdir"/usr install || return 1 mkdir -p "$pkgdir"/etc/wine paxctl -c -psmre "$pkgdir"/usr/bin/wine-preloader \ "$pkgdir"/usr/bin/wine } md5sums="70574d609161cec8523804cd9364bcd2 wine-1.3.28.tar.bz2 6ebeaa64eddf97be3267db236ce84b71 dn_skipname.patch 1127b41caf4de8f567b9a3d0aff5277f uclibc-fmaxf-fminf.patch"