summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cfe60bc7fc7a5e6ec7112c94ff8c2fc1a906eaee (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
# Maintainer Madison Brooke <madgeraccoon@outlook.com> and Robin Universe <rshaddock@elgin.edu>

pkgname=mineonline
pkg_case=MineOnline
pkgdev=craftycodie
depends=('jre8' 'jq')
pkgver=$(curl -s "https://api.github.com/repos/craftycodie/MineOnline/releases/latest" | jq -r '.tag_name')
pkgrel=1
pkgdesc="Launch old versions of Minecraft just as you remembered them, only without a browser."
url="http://mineonline.codie.gg"
license=('CCPL:by-nc')
arch=('any')
source=("https://github.com/${pkgdev}/${pkg_case}/releases/download/${pkgver}/${pkg_case}-${pkgver}.jar"
                "${pkg_case}.desktop"
                "${pkg_case}.png"
                "${pkgname}")
noextract=("${pkg_case}-${pkgver}.jar")
md5sums=('SKIP'
                 'ee7c23b2f3f53e811960769c676b788b'
                 '7b03ae414098babec81c613bd7b8fe5b'
                 'f71684f402cd53a32be3b8d2cc05964b')

package() {
        cd $srcdir
        mv "${pkg_case}-${pkgver}.jar" "${pkg_case}.jar"
        mkdir -p $pkgdir/usr/{bin,share/{applications,pixmaps,java/$pkgname}}
        install -m 755 $pkgname $pkgdir/usr/bin/
        install -m 755 ${pkg_case}.jar $pkgdir/usr/share/java/$pkgname/
        install -m 644 $srcdir/${pkg_case}.desktop $pkgdir/usr/share/applications/
        install -m 644 $srcdir/${pkg_case}.png $pkgdir/usr/share/pixmaps/
        rm "$startdir/${pkg_case}-${pkgver}.jar"
}