--- user/papermc/APKBUILD +++ user/papermc/APKBUILD @@ -28,24 +28,24 @@ _game="papermc" _server_root="/var/lib/papermc" package() { - install -Dm644 $srcdir.$_game.conf "$pkgdir.etc/conf.d/$_game" - install -Dm755 $srcdir.$_game.sh "$pkgdir.usr/bin/$_game" - install -Dm755 $srcdir.$_game.initd "$pkgdir.etc/init.d/$_game" - install -Dm644 $srcdir.$_game.$pkgver.jar "$pkgdir.$_server_root.$_game.$pkgver.jar" - ln -s "$_game.$pkgver.jar" "$pkgdir._server_root.$_game.server.jar" + install -Dm644 "$srcdir"/$_game.conf "$pkgdir"/etc/conf.d/$_game + install -Dm755 "$srcdir"/$_game.sh "$pkgdir"/usr/bin/$_game + install -Dm755 "$srcdir"/$_game.initd "$pkgdir"/etc/init.d/$_game + install -Dm644 "$srcdir"/$_game.$pkgver.jar "$pkgdir"/$_server_root/$_game/$pkgver.jar + ln -s "$_game"/$pkgver.jar "$pkgdir"/$_server_root/$_game/server.jar # Link to craftbukkit plugins var - ln -s "/var/lib/craftbukkit/plugins" "$pkgdir.$_server_root.plugins" + ln -s "/var/lib/craftbukkit/plugins" "$pkgdir"/$_server_root/plugins # Link the log files - mkdir -p "$pkgdir.var/log/" - install -dm2755 "$pkgdir.$_server_root.logs" - ln -s "$_server_root.logs" "$pkgdir.var/log/$_game" + mkdir -p "$pkgdir"/var/log/ + install -dm2755 "$pkgdir"/$_server_root/logs + ln -s "$_server_root"/logs "$pkgdir"/var/log/$_game # Give the group write permissions and set user or group ID on execution - chmod g+ws "$pkgdir._server_root" + chmod g+ws "$pkgdir"/$_server_root - install -D $srcdir../LICENSE_$pkgver.md "$pkgdir.usr/share/licenses/$pkgname.LICENSE" + install -D "$srcdir"/LICENSE_$pkgver.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } sha512sums=" 623d6423ee337671d546469e6bf1821005484192a1ae56d7b77f547f79102df50462e1d0144be13a0de9021c9d931bc974143b1e1526114627ba28688589d76a papermc.1.18.1.99.jar