summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99bc8b2a4d7164bdbd1efc7b6ee032fc574c78a4 (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
# Maintainer: js6pak <kubastaron@hotmail.com>

pkgname=betacraft-launcher-bin
pkgver=1.09_17
pkgrel=1
pkgdesc="A Minecraft launcher that aims to provide easy access to old versions and improve the overall game experience in those versions."
arch=('x86_64')
url="https://github.com/betacraftuk/betacraft-launcher"
license=('GPL3')
depends=('java-runtime=8')
provides=("${pkgname%-bin}")

source=("$pkgname-$pkgver.jar::https://github.com/betacraftuk/betacraft-launcher/releases/download/$pkgver/launcher-$pkgver.jar"
	'betacraft-launcher'
	'betacraft-launcher.png'
	'betacraft-launcher.desktop')
sha256sums=('08c7a65fb9ab09ae5df64409375febc9e06727fb3acb3dda1eaf729b859658e3'
            '31bded76e46fd1538fb131fad774d402685b341df861b3f538379d926e5d4d6a'
            '29df44a3d868560ad69ed8f4beb8772b246ceedc8bfa70a8c39513695c2b7ea6'
            '260020b2dcb68c46ec4d13112289d21fdff962df8345918a612d3b3fb0359551')

package() {
	cd "$srcdir"

	mkdir -p "$pkgdir/opt/betacraft-launcher/"
	chmod -R 755 "$pkgdir/opt/betacraft-launcher/"

	install -D -m755 "$srcdir/betacraft-launcher" "$pkgdir/usr/bin/betacraft-launcher"

	install -D -m644 "$srcdir/$pkgname-$pkgver.jar" "$pkgdir/opt/betacraft-launcher/BetaCraft-Launcher-Java.jar"

	install -D -m644 "$srcdir/betacraft-launcher.png" "$pkgdir/usr/share/pixmaps/betacraft-launcher.png"
	install -D -m644 "$srcdir/betacraft-launcher.desktop" "$pkgdir/usr/share/applications/betacraft-launcher.desktop"
}