aboutsummaryrefslogtreecommitdiffstats
path: root/main/wine
diff options
context:
space:
mode:
Diffstat (limited to 'main/wine')
-rw-r--r--main/wine/APKBUILD27
1 files changed, 22 insertions, 5 deletions
diff --git a/main/wine/APKBUILD b/main/wine/APKBUILD
index cc3a908fe8..68af75d576 100644
--- a/main/wine/APKBUILD
+++ b/main/wine/APKBUILD
@@ -2,10 +2,10 @@
pkgname=wine
pkgver=1.7.28
_ver=${pkgver/_/-}
-pkgrel=0
+pkgrel=1
pkgdesc="A compatibility layer for running Windows programs"
url="http://www.winehq.com"
-arch="x86"
+arch="x86 x86_64"
license="LGPL2+"
subpackages="$pkgname-dev $pkgname-doc"
makedepends="fontconfig-dev openldap-dev libxslt-dev libxxf86dga-dev
@@ -37,22 +37,39 @@ prepare() {
build() {
cd "$_builddir"
+
+ case "$CARCH" in
+ x86_64) _win64=--enable-win64;;
+ esac
+
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
+ --libdir=/usr/lib \
--with-dbus \
--with-x \
+ $_win64 \
|| return 1
make
}
package() {
cd "$_builddir"
- make -j1 prefix="$pkgdir"/usr install || return 1
+ make -j1 \
+ prefix="$pkgdir"/usr \
+ libdir="$pkgdir"/usr/lib \
+ dlldir="$pkgdir"/usr/lib/wine \
+ install || return 1
mkdir -p "$pkgdir"/etc/wine
- paxctl -c -psmre "$pkgdir"/usr/bin/wine-preloader \
- "$pkgdir"/usr/bin/wine
+
+ case "$CARCH" in
+ x86_64) _wine="wine64";;
+ *)_wine="wine";;
+ esac
+
+ paxctl -c -psmre "$pkgdir"/usr/bin/$_wine-preloader \
+ "$pkgdir"/usr/bin/$_wine
}
md5sums="7443e04f368a63de80ec2738f5337abd wine-1.7.28.tar.bz2