blob: b239fc469c1f81dec69a8bc5d8db4c920e16f33c (
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
|
# Maintainer: Daniele Basso <d dot bass05 at proton dot me>
## links:
# https://www.winehq.org
# https://gitlab.winehq.org/wine/wine
# https://gitlab.winehq.org/wine/wine-staging
# https://github.com/wine-staging/wine-staging
pkgname="winecx"
pkgver=26.3.0
_pkgver="${pkgver/rc/-rc}"
pkgrel=1
pkgdesc="A compatibility layer for running Windows programs"
url="https://www.codeweavers.com/crossover/"
license=('LGPL-2.1-or-later')
arch=('x86_64')
provides=(winecx-wow64)
replaces=(winecx-wow64)
conflicts=(winecx-wow64)
depends=(
alsa-lib #lib32-alsa-lib
fontconfig #lib32-fontconfig
freetype2 #lib32-freetype2
gettext #lib32-gettext
gnutls #lib32-gnutls
gst-plugins-base-libs #lib32-gst-plugins-base-libs
libpcap #lib32-libpcap
libpulse #lib32-libpulse
libxcomposite #lib32-libxcomposite
libxcursor #lib32-libxcursor
libxi #lib32-libxi
libxinerama #lib32-libxinerama
libxkbcommon #lib32-libkbcommon
libxrandr #lib32-libxrandr
opencl-icd-loader #lib32-opencl-icd-loader
pcsclite #lib32-pcsclite
sdl2 #lib32-sdl2
unixodbc #lib32-unixodbc
v4l-utils #lib32-v4l-utils
wayland #lib32-wayland
desktop-file-utils
libgphoto2
)
makedepends=(
libxxf86vm #lib32-libxxf86vm
mesa #lib32-mesa
mesa-libgl #lib32-mesa-libgl
vulkan-icd-loader #lib32-vulkan-icd-loader
autoconf
bison
flex
mingw-w64-gcc
opencl-headers
perl
vulkan-headers
)
_makeoptdeps=(
::alsa-plugins #lib32-alsa-plugins
::dosbox
libcups::cups #lib32-libcups
samba::samba
sane::sane
)
for i in "${_makeoptdeps[@]}"; do
[ -n "${i%%::*}" ] && makedepends+=("${i%%::*}")
[ -n "${i##*::}" ] && optdepends+=("${i##*::}")
done
provides=("winecx")
conflicts=("winecx")
install="wine.install"
backup=("usr/lib/binfmt.d/wine.conf")
options=(!lto pestrip)
source=(
"https://media.codeweavers.com/pub/crossover/source/crossover-sources-$pkgver.tar.gz"
"30-win32-aliases.conf"
"wine-binfmt.conf"
"distversion.h"
)
b2sums=('5456f63ac935d3fd107b29465ad6c9aa40ae986fe00907e704410fbe00c52838443104af213f48dcd70e95280ba696dfbcd006dddc4242db856b36635999195d'
'45db34fb35a679dc191b4119603eba37b8008326bd4f7d6bd422fbbb2a74b675bdbc9f0cc6995ed0c564cf088b7ecd9fbe2d06d42ff8a4464828f3c4f188075b'
'e9de76a32493c601ab32bde28a2c8f8aded12978057159dd9bf35eefbf82f2389a4d5e30170218956101331cf3e7452ae82ad0db6aad623651b0cc2174a61588'
'efbb28d4cf6e60b75f269c19bb708049d85b3aaace819b6fcd4507b1f8b05bf745e7171ee57f504d89089952bc9081419669b69a8102e9bcd6d6b0f5ed9730ab')
prepare() {
# Alteração: Ajuste para a nova estrutura de diretórios
mkdir -p "${srcdir}/sources/wine/programs/winedbg"
cp "${srcdir}/distversion.h" "${srcdir}/sources/wine/programs/winedbg/distversion.h"
}
build() {
# Apply flags for cross-compilation
export CROSSCFLAGS="-O2 -pipe"
export CROSSCXXFLAGS="-O2 -pipe"
export CROSSLDFLAGS="-Wl,-O1"
mkdir -p build
cd build
../sources/wine/configure \
--disable-tests \
--prefix=/usr \
--libdir=/usr/lib \
--enable-archs=x86_64,i386 \
--enable-build-id
make
}
package() {
cd build
make prefix="${pkgdir}/opt/winecx" \
libdir="${pkgdir}/opt/winecx/lib" \
dlldir="${pkgdir}/opt/winecx/lib/wine" install
install -d -m755 "${pkgdir}/usr/bin"
ln -s "${pkgdir}/opt/winecx/bin/wine" "${pkgdir}/usr/bin/winecx"
ln -s "${pkgdir}/opt/winecx/bin/wine64" "${pkgdir}/usr/bin/winecx64"
# font aliasing settings for win32 applications
install -d -m755 "${pkgdir}/opt/winecx/share/fontconfig/conf.default"
install -D -m644 "${srcdir}/30-win32-aliases.conf" -t "${pkgdir}/opt/winecx/share/fontconfig/conf.avail"
ln -s ../conf.avail/30-win32-aliases.conf "${pkgdir}/opt/winecx/share/fontconfig/conf.default/30-win32-aliases.conf"
}
# vim:set ts=8 sts=2 sw=2 et:
|