summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1557fcecab9b8010c8f383a570993f1c65c72fcd (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=an-anime-borb-launcher-bin
pkgver=1.0.1
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/an-anime-borb-launcher"
conflicts=("an-anime-borb-launcher-git")
provides=("an-anime-borb-launcher")
arch=("x86_64")
license=("GPL3")

depends=(
    "libadwaita"
    "tar"
    "xdg-desktop-portal"
    "unzip"
    "xdelta3"
    "cabextract"
    "git"
    "iputils"
    "gtk4"
    "glibc"
)

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=(
    "an-anime-borb-launcher_${pkgver}::https://github.com/an-anime-team/an-anime-borb-launcher/releases/download/${pkgver}/anime-borb-launcher"
    "icon.png"
    "an-anime-borb-launcher.desktop"
)

md5sums=(
    'ce7cb93ad7de892a708d0f91707d5a56'
    'c9781df3572ed96be8e11733d68a1f94'
    '3348673b36d8783fb1e7bd1363e79c89'
)

prepare() {
    chmod +x "${srcdir}/an-anime-borb-launcher_${pkgver}"
}

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

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