blob: 06699f67e1db9de7187fedfddd9ca4025691adcf (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# Maintainer: Roland <hr_01y@protonmail.com>
pkgname=wine-x64
pkgver=6.0
pkgrel=2
pkgdesc="A compatibility layer for running Windows programs. This only configured with x64 support."
url="http://www.winehq.com"
arch=(x86_64)
options=(staticlibs)
license=(LGPL)
# replacing rc with -rc
# pkgver is not allowed to contain hyphens
_pkgbasever=${pkgver/rc/-rc}
source=(https://dl.winehq.org/wine/source/6.0/wine-$_pkgbasever.tar.xz{,.sign}
30-win32-aliases.conf)
sha512sums=('c0732fbab1da8737d595a876b28ce87eef1440c317746e798642b59b44b34e890de562e0c0cc674e97096f39db82f8e9c3b1cc1ba9edc246b7266a0f7cb00057'
'86803505f85ea2c56d70331fda7e68d3cba7d5c78513c0d5edd5fcbe00e1aa99ae472d1123a62ed41f5bcdf5ccd66c1894306cd8f451b9efbf33aa14b6ae111a'
'6e54ece7ec7022b3c9d94ad64bdf1017338da16c618966e8baf398e6f18f80f7b0576edf1d1da47ed77b96d577e4cbb2bb0156b0b11c183a0accf22654b0a2bb')
validpgpkeys=(DA23579A74D4AD9AF9D3F945CEFAC8EAAF17519D)
provides=("wine=$pkgver")
depends=(
libx11
fontconfig
lcms2
sdl2
libxcursor
libjpeg
libxslt
libxrandr
libxi
freetype2
libxinerama
libxcomposite
glu
)
makedepends=(
bison
)
optdepends=(
v4l-utils
opencl-headers
opencl-icd-loader
libpulse
gsm
libgphoto2
sane
libcups
openal
faudio
mpg123
vkd3d
vulkan-icd-loader
vulkan-headers
)
conflicts=(
wine
)
prepare() {
# https://bugs.winehq.org/show_bug.cgi?id=43530
export CFLAGS="${CFLAGS/-fno-plt/}"
export LDFLAGS="${LDFLAGS/,-z,now/}"
sed 's|OpenCL/opencl.h|CL/opencl.h|g' -i wine-$_pkgbasever/configure*
# Get rid of old build dirs
rm -rf wine-64-build
}
build() {
msg2 "building wine-$_pkgbasever ..."
cd wine-$_pkgbasever
./configure \
--prefix=/usr \
--libdir=/usr/lib \
--with-x \
--without-gstreamer \
--without-hal \
--without-oss \
--without-mingw \
--enable-win64
make
}
package() {
msg2 "packaging wine-$_pkgbasever ..."
cd wine-$_pkgbasever
make prefix="$pkgdir/usr" \
libdir="$pkgdir/usr/lib" \
dlldir="$pkgdir/usr/lib/wine" install
# font aliasing settings
install -d "$pkgdir"/etc/fonts/conf.{avail,d}
install -m644 "$srcdir/30-win32-aliases.conf" "$pkgdir/etc/fonts/conf.avail"
ln -s ../conf.avail/30-win32-aliases.conf "$pkgdir/etc/fonts/conf.d/30-win32-aliases.conf"
}
|