aboutsummaryrefslogtreecommitdiffstats
path: root/main/wine/APKBUILD
blob: a719f09e496b3dea908e84a916d39e461d53c496 (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=wine
pkgver=1.5.30
_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
	wine-1.5.30-missing-libwine.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 && autoreconf || return 1
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--with-dbus \
		--with-x
	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="be776eb7b50c15bac5543775c8416217  wine-1.5.30.tar.bz2
5437ea66de4bbccf53a40c1e0821cd81  wine-1.5.30-missing-libwine.patch"
sha256sums="0f6f92a5730037b85b75089af6817ae2ceffb335caa5077e2ab1b41944c452c3  wine-1.5.30.tar.bz2
2f0155c2c1d11fd9a06deab54dd753c1161e32217eae82604f8c1d542e87af4f  wine-1.5.30-missing-libwine.patch"
sha512sums="437c0c0eb508c7ef6d468d434d751b91ca1007231fcc1732aff00be6f0bcf0d96e207d5251f336345c2fea2f20035ce4cdbd51ed258baebb5c13734858868c97  wine-1.5.30.tar.bz2
e6d566f75632065def197cf27b5705a3f2f736a7b3bb4ae03df19fea00fd980a5b5d0517981469fef0fa5347c1c3b9651894fb23d937b5dbbd993cd292f67183  wine-1.5.30-missing-libwine.patch"