updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / bin32-wine-suse / PKGBUILD
blob38e78aeae537bd9316810d3ae37e10d8bf6e1ae7
1 # Maintainer: Det <nimetonmaili at gmail a-dot com>
2 # Contributor: Lee Jackson <tomoe AT lbjackson DOTCOM>
3 # Based on [extra]'s wine
5 pkgname=bin32-wine-suse
6 pkgver=1.3.36
7 pkgrel=6
8 # _suserel=1.$pkgrel
9 # _suserel=$pkgrel.1
10 _suserel=3.4
11 pkgdesc="A compatibility layer for running Windows programs - prebuilt openSUSE i586 build"
12 url="http://en.opensuse.org/Wine"
13 install=$pkgname.install
14 arch=('x86_64')
15 license=('LGPL')
16 depends=('lib32-fontconfig' 'lib32-mesa' 'lib32-libxcursor' 'lib32-libxrandr' 'lib32-libxdamage' 'lib32-libxi' 'lib32-gettext' 'desktop-file-utils')
17 optdepends=('lib32-giflib' 'lib32-libpng' 'lib32-libldap' 'lib32-lcms' 'lib32-libxml2' 'lib32-mpg123' 'lib32-openal' 'lib32-libcups' 'lib32-v4l-utils' 'lib32-libpulse' 'lib32-alsa-plugins' 'lib32-alsa-lib' 'wine_gecko')
18 provides=("wine=$pkgver" "bin32-wine=$pkgver" "bin32-winetricks=$pkgver")
19 conflicts=('wine' 'bin32-wine' 'bin32-winetricks')
20 source=(http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_Factory/i586/wine-$pkgver-$_suserel.i586.rpm
21         http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_Factory/i586/wine-32bit-$pkgver-$_suserel.i586.rpm
22         http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_Factory/i586/wine-devel-$pkgver-$_suserel.i586.rpm)
23 md5sums=(`curl -s $source.md5 | cut -d " " -f1`
24          `curl -s ${source[1]}.md5 | cut -d " " -f1`
25          `curl -s ${source[2]}.md5 | cut -d " " -f1`)
27 package() {
28   msg2 "Cleaning up unnecessary desktop entries"
29   rm usr/share/applications/wine-*
31   msg2 "Re-arranging docs"
32   mv usr/share/doc/{packages/wine,wine}
33   rmdir usr/share/doc/packages
35   msg2 "Moving everything in place"
36   mv usr/ "$pkgdir"