summaryrefslogtreecommitdiffstats
path: root/packages/games-misc/prismlauncher/prismlauncher-11.1.1.exheres-0
blob: 7e2a005a3575a43a58a9161942f45f5743ddd5a9 (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
# Copyright 2026 Gurov <thuggerthugger1@duck.com>
# Distributed under the terms of the GNU General Public License v2

require cmake freedesktop-desktop freedesktop-mime gtk-icon-cache

SUMMARY="Minecraft launcher with ability to manage multiple instances"
HOMEPAGE="https://prismlauncher.org https://github.com/PrismLauncher/PrismLauncher"
DOWNLOADS="https://github.com/PrismLauncher/PrismLauncher/releases/download/${PV}/PrismLauncher-${PV}.tar.gz -> ${PNV}.tar.gz"

LICENCES="Apache-2.0 Batch GPL-3 LGPL-2+ LGPL-3+ MIT OFL-1.1"
SLOT="0"
PLATFORMS="~amd64"

DEPENDENCIES="
    build:
        app-doc/scdoc
        kde-frameworks/extra-cmake-modules
        sys-libs/vulkan-headers
        virtual/jdk:17
        virtual/pkg-config

    build+run:
        app-arch/libarchive
        app-text/cmark
        dev-cpp/tomlplusplus
        media-libs/qrencode
        sys-apps/gamemode
        sys-apps/pciutils
        sys-libs/zlib
        x11-dri/mesa
        x11-libs/qtbase:6[gui][vulkan]
        x11-libs/qtnetworkauth:6
        x11-libs/qtsvg:6

    run:
        x11-libs/qtimageformats:6

    suggestion:
        virtual/jre:* [[ description = [ System Java for running Minecraft, otherwise use the built-in Java downloader ] ]]
"

CMAKE_SOURCE="${WORKBASE}/PrismLauncher-${PV}"

CMAKE_SRC_CONFIGURE_PARAMS=(
    -DLauncher_BUILD_PLATFORM=Exherbo
    -DLauncher_ENABLE_JAVA_DOWNLOADER=ON
)

CMAKE_SRC_CONFIGURE_TESTS=(
    '-DBUILD_TESTING=ON -DBUILD_TESTING=OFF'
)

pkg_postinst() {
    freedesktop-mime_pkg_postinst
    freedesktop-desktop_pkg_postinst
    gtk-icon-cache_pkg_postinst
}

pkg_postrm() {
    freedesktop-mime_pkg_postrm
    freedesktop-desktop_pkg_postrm
    gtk-icon-cache_pkg_postrm
}