blob: 345dcc827daa41c494f0fcc749e934388bcfca89 (
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
# Maintainer: Roland Angerbauer <roland.angerbauer@gmail.com>
pkgname=wine-x64
pkgver=4.7
pkgrel=1
# replacing rc with -rc
# pkgver is not allowed to contain hyphens
_pkgbasever=${pkgver/rc/-rc}
source=(https://dl.winehq.org/wine/source/4.x/wine-$_pkgbasever.tar.xz{,.sign}
30-win32-aliases.conf)
sha512sums=('cb768528db510f81d464b9c1bb48847162baaa86ef00dc7a418afdce38aa51262d150c14b3362fb40c93cc2e3633fc02b2916167f21af8a708eb393da6ba9163'
'5ab8ee632d5cddbcc36fe68b7cfa06c5d8f77670af5ac2ed9e6eedbe4390a14d461b5920e199dc35f55b25f184f71d7718a54a250dd10fa30ced65e3c1c0f4a6'
'6e54ece7ec7022b3c9d94ad64bdf1017338da16c618966e8baf398e6f18f80f7b0576edf1d1da47ed77b96d577e4cbb2bb0156b0b11c183a0accf22654b0a2bb')
validpgpkeys=(DA23579A74D4AD9AF9D3F945CEFAC8EAAF17519D)
pkgdesc="A compatibility layer for running Windows programs"
url="http://www.winehq.com"
arch=(x86_64)
options=(staticlibs)
license=(LGPL)
depends=(
libx11
fontconfig
lcms2
sdl2
# libxml2
libxcursor
libjpeg
libxslt
libxrandr
# libxdamage
libxi
# gettext
freetype2
# glu
# libsm
# gcc-libs
# libpcap
# desktop-file-utils
)
makedepends=(
# autoconf
# ncurses
# bison
# perl
# flex
# 'gcc>=4.5.0-2'
# giflib
# libpng
# gnutls
# libxinerama
# libxcomposite
# libxmu
# libxxf86vm
# libldap
# mpg123
# openal
# v4l-utils
# libpulse
# alsa-lib
# libxcomposite
# mesa
# mesa-libgl
# opencl-icd-loader
# libxslt
# gst-plugins-base-libs
)
optdepends=(
# giflib
# libpng
# libldap
# gnutls
# mpg123
# openal
# v4l-utils
# libpulse
# alsa-plugins
# alsa-lib
# libjpeg-turbo
# libxcomposite
# libxinerama
# ncurses
# opencl-icd-loader
# libxslt
# gst-plugins-base-libs
# cups
# samba
# dosbox
)
makedepends=(${makedepends[@]} ${depends[@]})
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-capi \
--without-hal \
--without-vkd3d \
--without-vulkan \
--without-opencl \
--without-oss \
--without-faudio \
--without-gsm \
--without-pulse \
--without-mpg123 \
--without-sane \
--without-gphoto \
--without-openal \
--without-cups \
--without-v4l2 \
--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"
}
|