updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / wine-stable / PKGBUILD
blob575fd171188cb7a0005202f917dad1b2f21960f3
1 # Contributor: Vamp898 <vamp898@web.de>
3 pkgname=wine-stable
4 pkgname_real=wine
5 pkgver=1.2.3
6 pkgrel=1
8 _pkgbasever=${pkgver/rc/-rc}
10 source=(http://ibiblio.org/pub/linux/system/emulators/$pkgname_real/$pkgname_real-$_pkgbasever.tar.bz2)
12 pkgdesc="A compatibility layer for running Windows programs"
13 url="http://www.winehq.com"
14 arch=(i686 x86_64)
15 license=(LGPL)
16 depends=(fontconfig mesa libxcursor libxrandr libxdamage libxxf86dga alsa-lib)
17 makedepends=(autoconf ncurses bison perl fontforge flex prelink libgphoto2 giflib libxpm libpng libxinerama libxcomposite libxmu libxxf86vm libxml2 libxslt libldap lcms mpg123 openal esound jack cups sane samba)
18 optdepends=(libgphoto2 giflib libpng libldap lcms libxml2 mpg123 openal esound jack cups sane samba)
19 provides=('wine')
21 build() {
22   cd "$srcdir"
24   # Allow ccache to work
25   mv $pkgname_real-$_pkgbasever $pkgname_real
27   # (Re)create build dirs
28   rm -rf $pkgname_real-32-build
29   mkdir $pkgname_real-32-build
31 msg2 "Building Wine..."
33     cd "$srcdir/$pkgname_real-32-build"
34     ../$pkgname_real/configure \
35       --prefix=/usr \
36       --sysconfdir=/etc \
37       --with-x
39     make
42 package() {
44 msg2 "Packaging Wine..."
46   cd "$srcdir/$pkgname_real-32-build"
47   make prefix="$pkgdir/usr" install
48   mkdir -p "$pkgdir/etc/wine"
50 md5sums=('a18ca677d1e01d1596d6692a8f3997e5')