Thanks @xiretza for the detailed comment. I added the missing dependency, fixed the git submodule update, and cleaned up the cmake build instructions.
Search Criteria
Package Details: cuberite 1.12.2c2_eda440e-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/cuberite.git (read-only, click to copy) |
---|---|
Package Base: | cuberite |
Description: | A Minecraft-compatible multiplayer game server that is written in C++ and designed to be efficient with memory and CPU, as well as having a flexible Lua Plugin API. It is compatible with the vanilla Minecraft client. |
Upstream URL: | https://cuberite.org/ |
Keywords: | C C++ efficient load minecraft optimized plugin server speed |
Licenses: | Apache |
Provides: | minecraft-server, spigot |
Submitter: | edh |
Maintainer: | edh |
Last Packager: | edh |
Votes: | 10 |
Popularity: | 0.000000 |
First Submitted: | 2016-05-28 18:48 (UTC) |
Last Updated: | 2023-12-09 20:02 (UTC) |
Dependencies (14)
- awk (gawk-gitAUR, busybox-coreutilsAUR, gawk)
- bash (bash-devel-static-gitAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash-gitAUR)
- lua
- sed (busybox-coreutilsAUR, sed-gitAUR)
- sqlite (sqlite-fossilAUR)
- sudo (fake-sudoAUR, polkit-fakesudoAUR, sudo-gitAUR, doas-sudo-shimAUR, doas-sudo-shim-minimalAUR, sudo-hgAUR, sudo-selinuxAUR, fudo-gitAUR)
- tmux (tmux-tcl-gitAUR, tmux-fullwidth-backspaceAUR, tmux-xdg-gitAUR, tmux-sixel-gitAUR, tmux-gitAUR)
- clang (llvm-rocm-gitAUR, llvm-gitAUR, clang-minimal-gitAUR) (make)
- cmake (cmake-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- gtest (googletest-gitAUR) (make)
- python (python37AUR, python311AUR, python310AUR) (make)
- netcat (nmap-netcatAUR, openbsd-netcat-gitAUR, gnu-netcat-svnAUR, gnu-netcat, openbsd-netcat) (optional) – required in order to suspend an idle server
- tar (tar-gitAUR, busybox-coreutilsAUR) (optional) – needed in order to create world backups
Required by (0)
Sources (20)
- git+https://github.com/cuberite/ChatLog
- git+https://github.com/cuberite/cmake-coverage
- git+https://github.com/cuberite/Core
- git+https://github.com/cuberite/cuberite#commit=eda440e
- git+https://github.com/cuberite/expat
- git+https://github.com/cuberite/libdeflate
- git+https://github.com/cuberite/libevent
- git+https://github.com/cuberite/lua
- git+https://github.com/cuberite/luaexpat
- git+https://github.com/cuberite/luaproxy
- git+https://github.com/cuberite/polarssl
- git+https://github.com/cuberite/ProtectionAreas
- git+https://github.com/cuberite/sqlite
- git+https://github.com/cuberite/SQLiteCpp
- git+https://github.com/cuberite/TCLAP
- git+https://github.com/cuberite/toluapp
- git+https://github.com/fmtlib/fmt
- git+https://github.com/grafi-tt/lunajson
- git+https://github.com/open-source-parsers/jsoncpp
- minecraft-server-1.0.4.tar.gz
edh commented on 2023-08-30 01:58 (UTC)
xiretza commented on 2023-08-23 08:33 (UTC)
There's a bunch of issues with this PKGBUILD:
python
is missing frommakedepends
- The submodules don't work anymore because of new security features in git, see https://wiki.archlinux.org/title/VCS_package_guidelines#Git_submodules
CMAKE_BUILD_TYPE
needs to be set toNone
, notRELEASE
: https://wiki.archlinux.org/title/CMake_package_guidelinesLIBRARY_INSTALL_DIR
isn't used anywhere, and it's also unnecessary because that would be the default directory anyway- There's a missing
=
inCMAKE_CXX_FLAGS
, though both it andCMAKE_C_FLAGS
are unnecessary anyway
diff --git a/PKGBUILD b/PKGBUILD
index 0a61ffb..5e1ba09 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@ arch=('i686' 'x86_64' 'armv7h')
url="https://cuberite.org/"
license=('Apache')
depends=('lua' 'tmux' 'sudo' 'bash' 'awk' 'sed' 'sqlite')
-makedepends=('clang' 'cmake' 'gtest' 'git')
+makedepends=('clang' 'cmake' 'gtest' 'git' 'python')
optdepends=("tar: needed in order to create world backups"
"netcat: required in order to suspend an idle server")
provides=("minecraft-server=${_pkgver%_*}" "spigot=${_pkgver%_*}")
@@ -84,7 +84,7 @@ prepare() {
git config submodule.lib/luaproxy.url "${srcdir}"/luaproxy
git config submodule.Tools/BlockTypePaletteGenerator/lib/lunajson.url "${srcdir}"/lunajson
git config submodule.lib/libdeflate.url "${srcdir}"/libdeflate
- git submodule update
+ git -c protocol.file.allow=always submodule update
}
build() {
@@ -94,11 +94,8 @@ build() {
mkdir build
cd build
cmake .. \
- -DCMAKE_BUILD_TYPE=RELEASE \
- -DCMAKE_INSTALL_PREFIX=${_server_root} \
- -DLIBRARY_INSTALL_DIR=${_server_root}/lib \
- -DCMAKE_C_FLAGS="${CFLAGS}" \
- -DCMAKE_CXX_FLAGS"${CXXFLAGS}"
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=${_server_root}
make
edh commented on 2021-12-22 15:33 (UTC)
The management script to control this minecraft flavor was moved to a dedicated repository at GitHub:Edenhofer/minecraft-server. The script works for various flavors of minecraft. It is very minimalist yet versatile and feature-rich. For more information on how to configure and install the script separately, visit the above linked repository.
edh commented on 2021-06-02 23:06 (UTC)
@abouvier Interesting! Thanks for the link. That was all that I was worried about. I'll remove the commit hashes with the next release.
abouvier commented on 2021-06-02 18:11 (UTC)
edh commented on 2021-06-02 17:55 (UTC)
@abouvier
I wasn't able to spot any such information in the .gitmodules
file. Thus, the commits are there to make the package deterministically compile the same software each time you run it.
abouvier commented on 2021-06-02 14:35 (UTC) (edited on 2021-06-02 18:10 (UTC) by abouvier)
Nice, but you don't need to specify each submodule commit because this information is already part of the git repository. The specific commit will be fetched with git submodule update
.
edh commented on 2021-06-01 22:01 (UTC)
Done. The package now builds from source.
Note, this was quite a hassle to implement properly as cuberite uses git as dependency management solution. If anyone is interested in a cuberite-bin package I am more than happy to create and maintain such a package as well.
edh commented on 2021-06-01 09:23 (UTC)
@abouvier You are absolutaly right, I'll update the PKGBUILD soon.
abouvier commented on 2021-05-27 21:04 (UTC) (edited on 2021-05-27 21:06 (UTC) by abouvier)
This package should be renamed cuberite-bin
or compiled from the available source code (like cuberite-git
).
Pinned Comments
edh commented on 2019-11-28 22:17 (UTC)
Unfortunately, upstream does not really have proper releases but instead points to build-versions of the software. Note, I will not push every new build of the package to the AUR but I will update the package upon new minecraft releases, e.g. for 1.14.4 to 1.14.5.
edh commented on 2016-12-11 20:51 (UTC)