blob: 2be5d53d03a4adb8551eb898025d831e5ae7c163 (
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: Schrottfresse <schrottfresse@gmx.de>
pkgname="necesse-server"
_build=13035760
pkgver="0.23.1"
_pkgver_minus="$(echo ${pkgver} | sed 's/\./-/g')"
_zipname="${pkgname}-linux64-${_pkgver_minus}-${_build}.zip"
_dirname="${pkgname}-${_pkgver_minus}-${_build}"
pkgrel=2
arch=('x86_64')
url="https://necessegame.com/server/"
license=('proprietary')
depends=("java-runtime=17")
source=("https://necessegame.com/wp-content/uploads/2023/12/${_zipname}"
"${pkgname}.service")
sha256sums=('7054d3848c4bd564b3d85eebaa95c8249dc849f041cc51c9bf7be64b9001c228'
'3d32c112c80584c55eccfdafe5510f6fe57b0ce57ce03ca30b4d3e2674f2c7ce')
build() {
cd "${_dirname}"
# delete bundled openjre17
rm -rf ./jre
# delete unused windows and macos libs
find lib -regextype egrep -iregex ".*-natives-(windows|macos).*.jar" -delete
}
package() {
# Copy systemd service file
install -Dm644 -t "${pkgdir}/usr/lib/systemd/system/" "${pkgname}.service"
# Create dir for save files
install -dm755 "${pkgdir}/var/lib/${pkgname}"
cd "${_dirname}"
# Copy server jar
install -Dm644 -t "${pkgdir}/usr/lib/${pkgname}/" "Server.jar"
# Copy libs
install -Dm644 -t "${pkgdir}/usr/lib/${pkgname}/lib/" lib/*.jar
# Copy lang files
install -Dm644 -t "${pkgdir}/usr/lib/${pkgname}/locale/" locale/*.lang
}
|