blob: a28ae8cbe12b1a833d9c17236ea509234793f66b (
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
|
# Maintainer: Grey Christoforo <first name [at] last name [dot] net>
pkgname=albion-online-launcher-bin
pkgver=1.0.34.162
pkgrel=1
pkgdesc="The first true cross-platform Sandbox MMO -- launcher client"
url="https://albiononline.com/"
arch=('x86_64')
license=('custom')
makedepends=('chrpath')
depends=('libgl' 'qt5-webengine' 'sndio' 'xdelta3' 'ttf-font')
optdepends=(albion-online-live-game-data-bin albion-online-staging-game-data-bin)
source=("https://live.albiononline.com/autoupdate/launcher-linux-setup-${pkgver}" "albion-online-launcher.desktop")
install=albion-online-launcher-bin.install
options=(!strip docs libtool emptydirs !zipman staticlibs !upx)
md5sums=('aa2dc29a5b3ec07d9e7cdbbb87209e0f'
'14b5dfae0a7b3b0dc5e2f2975aa4892c')
prepare() {
chrpath -d "${srcdir}/data/launcher/Albion-Online"
pushd "${srcdir}/data/launcher"
rm libQt5* qt.conf xdelta3 QtWebEngineProcess libicu*
popd
pushd "${srcdir}/data"
sed -i '/export LD_LIBRARY_PATH=.*/d' Albion-Online
sed -i '/export QT_QPA_PLATFORM_PLUGIN_PATH=.*/d' Albion-Online
sed -i '/export QT_PLUGIN_PATH=.*/d' Albion-Online
#sed -i 's,export LD_LIBRARY_PATH=.*,export LD_LIBRARY_PATH=/usr/lib,g' Albion-Online
#sed -i 's,export QT_QPA_PLATFORM_PLUGIN_PATH=.*,export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/plugins/platforms,g' Albion-Online
#sed -i 's,export QT_PLUGIN_PATH=.*,export QT_PLUGIN_PATH=/usr/lib/qt/plugins,g' Albion-Online
sed -i 's,.*launcher/Albion-Online",QT_AUTO_SCREEN_SCALE_FACTOR=0 LD_PRELOAD=/opt/albion-online-launcher-bin/game_x64/Albion-Online_Data/Plugins/x86_64/libSDL2-2.0.so.0 "$SCRIPTPATH/launcher/Albion-Online",g' Albion-Online
popd
}
package() {
mkdir -p "${pkgdir}/opt"
cp -a "${srcdir}/data" "${pkgdir}/opt/${pkgname}"
mkdir "${pkgdir}/opt/${pkgname}/staging_x64"
chmod 775 "${pkgdir}/opt/${pkgname}/staging_x64"
mkdir "${pkgdir}/opt/${pkgname}/game_x64"
chmod 775 "${pkgdir}/opt/${pkgname}/game_x64"
# link launcher launcher
mkdir -p "${pkgdir}/usr/bin"
ln -s "/opt/$pkgname/Albion-Online" "${pkgdir}/usr/bin/albion-online-launcher"
# install .desktop file
install -m755 -D "${srcdir}/albion-online-launcher.desktop" -t "${pkgdir}/usr/share/applications"
# put the EULA somewhere
install -Dm644 "${srcdir}/data/eula.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et:
|