summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e7a5613fc7faa2a38d7013aceb8eb93b0e8f9aaf (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
# Maintainer: Maxim Korotkov <maximkorotkov4@gmail.com>
# Contributor: Marie Piontek <marie@kaifa.ch>

pkgname=honkers-launcher-bin
pkgver=1.9.0
pkgrel=1
pkgdesc="A launcher for a specific anime game with auto-patching, discord rpc and time tracking"
url="https://github.com/an-anime-team/honkers-launcher"
conflicts=("honkers-launcher")
provides=("honkers-launcher")
arch=("x86_64")
license=("GPL3")

depends=(
    "libadwaita"
    "xdg-desktop-portal"
    "p7zip"
    "git"
    "gtk4"
    "glibc"
    "gst-plugins-base"
    "gst-plugins-good"
    "gst-plugins-bad"
    "gst-libav"
)

optdepends=(
    "mangohud: FPS Hud/GUI"
    "gamemode: Game Optimizations"
    "gamescope: a tool from Valve that allows for games to run in an isolated Xwayland instance"
)

source=(
    "honkers-launcher_${pkgver}::https://github.com/an-anime-team/honkers-launcher/releases/download/${pkgver}/honkers-launcher"
    "icon.png"
    "honkers-launcher.desktop"
)

md5sums=(
    '49e437122d7103f8f7b89f817a3b0511'
    '26b637e96d0f4382c8b132656a9ce3a5'
    '739854fbecc047beb55d738dbdfe85d9'
)

prepare() {
    chmod +x "${srcdir}/honkers-launcher_${pkgver}"
}

package() {
    install -dm755 "${pkgdir}/usr/lib/${pkgname}"
    install -dm755 "${pkgdir}/usr/bin/"
    cp honkers-launcher_${pkgver} "${pkgdir}/usr/lib/${pkgname}/"

    install -Dm644 "${srcdir}/icon.png" "${pkgdir}/usr/share/pixmaps/honkers-launcher.png"
    ln -s "/usr/lib/${pkgname}/honkers-launcher_${pkgver}" "${pkgdir}/usr/bin/honkers-launcher"
    install -Dm644 "${srcdir}/honkers-launcher.desktop" -t "${pkgdir}/usr/share/applications"
    install -Dm644 "${srcdir}/icon.png" "${pkgdir}/usr/share/icons/moe.launcher.honkers-launcher.png"
}