blob: b018fd3b34c7a44153a119226bd12361be78516f (
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
|
# Maintainer: NelloKudo <marshnelloosu@gmail.com>
pkgname="spritz-wine-bin"
_pkgname=${pkgname%-bin}-tkg
pkgver=11.2
pkgrel=1
buildrel=1
pkgdesc="A compatibility layer for running Windows programs, with experimental custom patches for games (doesn't conflict with other Wine installations)"
url="https://github.com/NelloKudo/spritz-wine-aur"
license=(LGPL)
arch=('x86_64')
depends=(
'attr' 'desktop-file-utils'
'fontconfig' 'freetype2'
'gcc-libs' 'gettext'
'glib2' 'glibc'
'libpcap' 'libunwind'
'libx11' 'libxcursor'
'libxext' 'libxi'
'libxkbcommon' 'libxrandr'
'systemd-libs' 'wayland'
'base-devel'
)
source=("https://github.com/NelloKudo/spritz-wine-aur/releases/download/${_pkgname}-${pkgver}-${buildrel}/${_pkgname}-staging-wow64-${pkgver}-${buildrel}-x86_64.tar.xz"
"winestart.c")
sha256sums=('1b6c6eb33c38c00ded00114e35652bd6cf2669d8b81b17077f9d5289aae310b5'
'ebe0fd2eb64c01c561fd9cba40f3488f2c8df3fbf60c819915491a7cad0bd237')
package() {
msg2 "Building launch wrapper..."
env cc "${srcdir}"/winestart.c -Wl,-s -Oz -march=x86-64 -o "${srcdir}"/winestart
# Install to /opt
install -dm755 "$pkgdir/opt"
cp -a "$srcdir/$_pkgname-staging-wow64-$pkgver-$buildrel" "$pkgdir/opt/$_pkgname"
## Add simple wrapper and link it to /usr/bin/
cp "${srcdir}"/winestart "$pkgdir/opt/$_pkgname/bin"
chmod +x "$pkgdir/opt/$_pkgname/bin/winestart"
# Symlink to /usr/bin as 'spritz-wine'
install -dm755 "$pkgdir/usr/bin"
ln -s "/opt/$_pkgname/bin/winestart" "$pkgdir/usr/bin/spritz-wine"
}
|