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

pkgname=crystallauncher
pkgrel=1
pkgver=1.0.0.1
pkgdesc="Crystal Launcher is a unofficial launcher for Minecraft that has own packages repository. It can also run official launcher packages."
arch=('any')
url="https://crystal-launcher.net/"
license=('CCPL')
depends=('jdk8-openjdk' 'openal' 'java8-openjfx')
makedepends=('unzip')
provides=('crystallauncher')

source=("http://main.crystal-launcher.pl/releases/other/CrystalLauncher.jar"
        "crystallauncher"
        "crystallauncher.desktop"
        "crystallauncher.png"
        )
noextract=('jar')


md5sums=('5a1ad091cd288d88c4132d8d9a616a00'
         '39650fe38b376bcd45090640fa867cc3'
         '4724472411e932b005f1b0d66a47f14e'
         '1fc2ef4be5729d96f9928af152fc1763')


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"

noextract=('jar')
    # 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"
}