summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 46b57d34dd491f21520bd5557d98d9c10f23e182 (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
# Maintainer: Jan LeszczyƄski <leszczu8023@gmail.com>

pkgname=crystallauncher
pkgrel=1
pkgver=1.1.0.0
pkgdesc="Crystal Launcher is a unofficial Minecraft launcher with support for modpacks and custom HD skin and cape system"
arch=('i686' 'x86_64')
url="https://crystal-launcher.net/"
license=('CCPL')
depends=('java-runtime=8' 'java8-openjfx' 'bash' 'zenity')
makedepends=('unzip')
provides=('crystallauncher')

source=("https://crystal-launcher.net/releases/other/CrystalLauncher.jar"
            "crystallauncher"
            "crystallauncher.desktop"
            "crystallauncher.png")

noextract=('jar')
sha256sums=('cb495e726512a039df6f6d297ba7cfd9ce0b1fe368bad5ba20abe7852d65527a'
            'e0a4ecd9122c81bb6949db9b12e174e1e79b5cdff52073f22b7f812577b56825'
            '08fd03cd4f89291b2290f96aeec2bd40c267b03afbabd42a3ad5b127c43cc3f2'
            '214f4f12eb772d2ce945723ab7b126b1fb3e78c009f4132d6b0f98ea2270ab0c')

pkgver() {
    echo $pkgver
}

package() {
    cd "$srcdir"

    # create folder for the main jar executable
    mkdir -p "${pkgdir}/usr/share/java/CrystalLauncher/"
    chmod -R 755 "${pkgdir}/usr/share/java/CrystalLauncher/"

    # install shell wrapper script
    install -D -m755 "${srcdir}/crystallauncher"         "${pkgdir}/usr/bin/crystallauncher"

    # install jar
    install -D -m644 "${srcdir}/CrystalLauncher.jar"     "${pkgdir}/usr/share/java/CrystalLauncher/launcher.jar"

    # install desktop launcher with icon
    install -D -m644 "${srcdir}/crystallauncher.desktop" "${pkgdir}/usr/share/applications/crystallauncher.desktop"
    install -D -m644 "${srcdir}/crystallauncher.png"     "${pkgdir}/usr/share/pixmaps/crystallauncher.png"
}