blob: 912b214708b970d4399ba8ebee6f46785a066958 (
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
50
51
|
# Maintainer: Holden Grayer <grayer0113@outlook.com>
pkgname=leavesmc-git
_pkgname=leavesmc
_pkgver=1.21.1
_buildid=699
_build=595afb8
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')
makedepends=('java-environment-openjdk=21' 'awk')
optdepends=('screen: Used to continue running the server after closing the terminal.')
provides=('leavesmc')
conflicts=('leavesmc')
install=${_pkgname}.install
source=("leavesmc.png"
"leavesmc.desktop"
"leavesmc-launch-script"
"leavesmc.install"
"${pkgname}"::"git+https://github.com/LeavesMC/Leaves.git")
sha256sums=("720ee68108bbe12c362cf5ed05b3ad5b28bbaf53f3d7952d389bfc404a5baaac"
"4a03cc59260564cbd176260250a4256e56793d4e82e40c61d421dd549c981022"
"8d2cad3c8e9f7e9f2c6ba88235b75dfc8ba0b2729b39fdad06c23aeb8910f681"
"af0f7f846da7e5da02193538d5120fdb40cc3730e1ec0574c23583bc0b03841f"
"SKIP")
pkgver() {
cd "${srcdir}/${pkgname}"
printf "${_pkgver}+%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
./gradlew applyPatches
./gradlew createMojmapLeavesclipJar
}
package() {
_buildver="$(awk -F= '/^version/ {gsub(/"|,|\s/,""); printf $2}' ${srcdir}/${pkgname}/gradle.properties)"
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 "${srcdir}/${pkgname}/build/libs/Leaves-leavesclip-${_buildver}-mojmap.jar" "${pkgdir}/usr/share/java/${_pkgname}/${_pkgname}.jar"
install -Dm644 "${srcdir}/${pkgname}/licenses/GPL.md" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE_GPL"
install -Dm644 "${srcdir}/${pkgname}/licenses/MIT.md" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE_MIT"
}
|