aboutsummaryrefslogtreecommitdiffstats
path: root/main/wine/APKBUILD
blob: 2cc9cae033d53f50a1d61f23c99661ab15251d08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=wine
pkgver=1.7.7
_ver=${pkgver/_/-}
pkgrel=1
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
	freetype.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="e3b9383439d60202b10b5e93e5b00a3b  wine-1.7.7.tar.bz2
04de15acbaea8e336f267e14efd1cd9b  freetype.patch"
sha256sums="110603b6bff33441356ef6e72f94a70abf3b4822be1f0fb6c84b5240e9d5aca7  wine-1.7.7.tar.bz2
99715e726c0fdbe879fd42254670dfac60319fcd20c4593f5ed085b8dbf8584e  freetype.patch"
sha512sums="94a4bb48261b575f7f8c8e1d6b54192dbf35b9aa595fb5afd571458cc94af2b72591facb32e7777e1ceb650a3567a3708089ab363d20b0cc4fc4984e31accb52  wine-1.7.7.tar.bz2
352e5b14e08fd9343556efb44d044b5c4eabda27f55ec1f4458628ea4177d75843739c5bf6920a69eb8d3ceea58f3f38984c97040e4e7e150e769ddd17c52050  freetype.patch"