summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c37e54dd6021863151ca5eea908f73cea7e9433 (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
# Maintainer: ns <ns at brickadia dot com>
_version=1.5

pkgname=brickadia-launcher
pkgver=$_version
pkgrel=1
pkgdesc="A multiplayer 3D brick building game."
arch=(x86_64)
url="https://brickadia.com"
license=(unknown)

options=('!strip')
_dist="brickadia-launcher-$_version.deb"
source=("$_dist::https://static.brickadia.com/launcher/$_version/brickadia-launcher.deb")
sha256sums=('a94938152847599b120c397d1762761b02758ec365ed2f3bbc94d50d750eb400')
noextract=("$_dist")

depends=(
    ## For the downloaded game
    glibc
    gcc-libs

    ## For the launcher
    # For /usr/bin/brickadia
    bash
    # For /usr/share/icons/hicolor/
    hicolor-icon-theme
    # I would prefer to depend on qt6-base etc., which would involve more complicated
    # mangling of the upstream files, as they're distributed with a Windows-like approach.
    # For ['usr/lib/brickadia-launcher/libQt6Gui.so.6']
    fontconfig
    # For ['usr/lib/brickadia-launcher/platforms/libqminimal.so']
    freetype2
    # For ['usr/lib/brickadia-launcher/platforms/libqxcb.so',
    # 'usr/lib/brickadia-launcher/libQt6Gui.so.6']
    libgl
    # For ['usr/lib/brickadia-launcher/libQt6DBus.so.6']
    dbus
    # For ['usr/lib/brickadia-launcher/platforms/libqxcb.so']
    libxkbcommon-x11
    # For ['usr/lib/brickadia-launcher/platforms/libqxcb.so']
    xcb-util-keysyms
    # For ['usr/lib/brickadia-launcher/platforms/libqxcb.so']
    xcb-util-renderutil
    # For ['usr/lib/brickadia-launcher/platforms/libqxcb.so']
    xcb-util-image
    # For ['usr/lib/brickadia-launcher/platforms/libqxcb.so']
    xcb-util-wm
)

prepare() {
    ar p "$_dist" data.tar.xz | tar -Jx
}

package() {
    install -Dm755 -t "$pkgdir"/usr/bin "$srcdir"/usr/bin/brickadia
    install -Dm755 -t "$pkgdir"/usr/share/applications "$srcdir"/usr/share/applications/brickadia-launcher*.desktop
    install -Dm755 -t "$pkgdir"/usr/share/icons/hicolor/256x256/apps "$srcdir"/usr/share/icons/hicolor/256x256/apps/brickadia-launcher*.png

    mkdir -p "$pkgdir"/usr/lib/
    cp -dr --no-preserve=ownership -t "$pkgdir"/usr/lib/ "$srcdir"/usr/lib/brickadia-launcher

    mkdir -p "$pkgdir"/usr/share/licenses/
    cp -dr --no-preserve=ownership -t "$pkgdir"/usr/share/licenses/ "$srcdir"/usr/share/licenses/brickadia-launcher
}