summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c8bf1628c1c370d6f3067797d31a8a8469ace10 (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
# Maintainer: Holden Grayer <grayer0113@outlook.com>

pkgname=leavesmc
_pkgver=1.21.1
_build=e199edf
_buildid=52
pkgver="${_pkgver}+${_buildid}.${_build}"
pkgrel=1
pkgdesc="Fork of Paper aimed at repairing broken vanilla properties."
arch=('any')
url="https://leavesmc.org/"
license=('custom')
depends=('java-runtime>=21')
optdepends=('screen: Used to continue running the server after closing the terminal.')
provides=('leavesmc-git')
conflicts=('leavesmc-git')
install=${pkgname}.install
source=("leavesmc.png"
        "leavesmc.desktop"
        "leavesmc-launch-script"
        "leavesmc.install"
        "${pkgname}-${pkgver}.jar"::"https://github.com/LeavesMC/Leaves/releases/download/${_pkgver}-${_build}/leaves-${_pkgver}.jar"
        "LICENSE_GPL"::"https://github.com/LeavesMC/Leaves/raw/master/licenses/GPL.md"
        "LICENSE_MIT"::"https://github.com/LeavesMC/Leaves/raw/master/licenses/MIT.md")
sha256sums=("720ee68108bbe12c362cf5ed05b3ad5b28bbaf53f3d7952d389bfc404a5baaac"
            "4a03cc59260564cbd176260250a4256e56793d4e82e40c61d421dd549c981022"
            "8d2cad3c8e9f7e9f2c6ba88235b75dfc8ba0b2729b39fdad06c23aeb8910f681"
            "af0f7f846da7e5da02193538d5120fdb40cc3730e1ec0574c23583bc0b03841f"
            "d219c2f82905bb4b805ec0d3808e2ae85b98444556f88cbc669fea2f746246a4"
            "0e1372769c3ea4ce2a8fb0955a02adf8e88d1804c6143518dee9f969eb0911f7"
            "559c62b6c55d1288098a4f744832081cdb7e0015139636cbbad1ad6cbe55ffea")

package() {
    install -Dm644 "leavesmc.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/${pkgname}.png"
    install -Dm644 "leavesmc.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
    install -Dm755 "leavesmc-launch-script" "${pkgdir}/usr/bin/${pkgname}"
    install -Dm644 "${pkgname}-${pkgver}.jar" "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
    install -Dm644 "LICENSE_GPL" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE_GPL"
    install -Dm644 "LICENSE_MIT" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE_MIT"
}