summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd49dabc6eb034dd92a05e0bc5ff68be7ccbc3c8 (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
# Maintainer: SaMaLerO <smlr[at]ukr[dot]net>
# Co-Maintainer: McModder <aur @ modder.pw>
# PLEASE do not mark it out-of date because "2.xx is released", *2.xx a separate project with same name from other dev team*
pkgname=tlauncher
pkgver=1.112.4
pkgrel=1
epoch=1
pkgdesc='TLauncher Legacy is freeware launcher of Minecraft.'
url='https://tlaun.ch'
arch=('any')
license=('GPLv3')
depends=('java-runtime>=8' 'xorg-xrandr')
#makedepends=('jq')
#_checksum=$(curl -sL 'https://cdn.turikhay.ru/tlauncher/legacy_beta/bootstrap.json' | jq -r '.update.bootstrap.downloads.JAR.checksum')
_checksum='972758e1c5cad62861844a94f2830a14c7e795975108cd3d31de729285c53eb6' # mark out-of-date if you'll get 404
# try to change repo if default sends 404
source=(#"https://turikhay.ru/tlauncher/legacy_beta/bootstrap/${_checksum}.jar"
        #"https://u.tlauncher.ru/legacy_beta/bootstrap/${_checksum}.jar"
        "https://tlauncherrepo.com/legacy_beta/bootstrap/${_checksum}.jar"
        'tlauncher.desktop'
        'tlauncher.install')
noextract=("${_checksum}.jar")
sha256sums=("${_checksum}"
            'ab05e25ac610dedf89b9554494eb56d2771789baf405d537f6ae3e2f069a115d'
            '0346fbc5e81522e498b63d392339024b8617a03de9fdf9126ba6364db94e188b')
install="${pkgname}.install"

#pkgver() {
#  echo $(curl -sL 'http://cdn.turikhay.ru/tlauncher/legacy_beta/bootstrap.json' | jq -r '.update.launcher.version')
#}

# tlauncher.jar needs at least 666 to launch =(
package() {
  mkdir -p "${pkgdir}/opt/tlauncher"
  mkdir -p "${pkgdir}/usr/share/applications/"
  install -m0644 "${srcdir}/tlauncher.desktop" "${pkgdir}/usr/share/applications/"
  install -Dm0666 "${srcdir}/${_checksum}.jar" "${pkgdir}/opt/tlauncher/tlauncher.jar"
}