From d98869db762aa95cb5ab2dda33a6c48d0fed9139 Mon Sep 17 00:00:00 2001 From: Konstantin Podsvirov Date: Wed, 1 Jan 2025 17:33:01 +0300 Subject: [PATCH 1/2] [new package] colobot-gold-data 0.2.2_alpha --- mingw-w64-colobot-gold-data/PKGBUILD | 46 ++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 mingw-w64-colobot-gold-data/PKGBUILD diff --git a/mingw-w64-colobot-gold-data/PKGBUILD b/mingw-w64-colobot-gold-data/PKGBUILD new file mode 100644 index 0000000000000..c92d8096b224c --- /dev/null +++ b/mingw-w64-colobot-gold-data/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Konstantin Podsvirov + +_dataname=colobot-data +_realname=colobot-gold +pkgbase=mingw-w64-${_realname}-data +pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}-data") +pkgver=0.2.2_alpha +_pkgver=${pkgver/_/-} +pkgrel=1 +pkgdesc='Data pack for Colobot GOLD real-time strategy game (mingw-w64)' +arch=('any') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url='https://colobot.info/' +msys2_repository_url='https://github.com/colobot/colobot-data' +license=('spdx:GPL3') +makedepends=("${MINGW_PACKAGE_PREFIX}-cmake" + "${MINGW_PACKAGE_PREFIX}-ninja" + "${MINGW_PACKAGE_PREFIX}-cc" + "${MINGW_PACKAGE_PREFIX}-python") +source=("${msys2_repository_url}/archive/${_realname}-${_pkgver}/${_dataname}-${_realname}-${_pkgver}.tar.gz") +sha256sums=('5c959a65ffc6047b656339bad425e2c050d3eb826e857dd80e2a03da0418c000') + +build() { + declare -a extra_config + if check_option "debug" "n"; then + extra_config+=('-DCMAKE_BUILD_TYPE=Release') + else + extra_config+=('-DCMAKE_BUILD_TYPE=Debug') + fi + + MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \ + cmake \ + -GNinja \ + -DCMAKE_INSTALL_PREFIX="${MINGW_PREFIX}" \ + "${extra_config[@]}" \ + -S "${_dataname}-${_realname}-${_pkgver}" \ + -B "build-${MSYSTEM}" + + cmake --build "build-${MSYSTEM}" +} + +package() { + DESTDIR="${pkgdir}" cmake --install "build-${MSYSTEM}" + + install -Dm644 "${srcdir}/${_dataname}-${_realname}-${_pkgver}/LICENSE.txt" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}-data/LICENSE.txt" +} From b623742c0b08a0baa922a7b4761e2c7e8beaaa1b Mon Sep 17 00:00:00 2001 From: Konstantin Podsvirov Date: Wed, 1 Jan 2025 17:34:46 +0300 Subject: [PATCH 2/2] [new package] colobot-gold 0.2.2_alpha --- mingw-w64-colobot-gold/PKGBUILD | 73 +++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 mingw-w64-colobot-gold/PKGBUILD diff --git a/mingw-w64-colobot-gold/PKGBUILD b/mingw-w64-colobot-gold/PKGBUILD new file mode 100644 index 0000000000000..f4ac85a53484c --- /dev/null +++ b/mingw-w64-colobot-gold/PKGBUILD @@ -0,0 +1,73 @@ +# Maintainer: Konstantin Podsvirov + +_realname=colobot-gold +pkgbase=mingw-w64-${_realname} +pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") +pkgver=0.2.2_alpha +_pkgver=${pkgver/_/-} +_dataver=${pkgver} +pkgrel=1 +pkgdesc='Colobot GOLD is a real-time strategy game with programmable bots (mingw-w64)' +arch=('any') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url='https://colobot.info/' +msys2_repository_url='https://github.com/colobot/colobot' +license=('spdx:GPL3') +depends=("${MINGW_PACKAGE_PREFIX}-libsndfile" + "${MINGW_PACKAGE_PREFIX}-glew" + "${MINGW_PACKAGE_PREFIX}-libvorbis" + "${MINGW_PACKAGE_PREFIX}-libpng" + "${MINGW_PACKAGE_PREFIX}-libogg" + "${MINGW_PACKAGE_PREFIX}-gettext" + "${MINGW_PACKAGE_PREFIX}-SDL2_image" + "${MINGW_PACKAGE_PREFIX}-SDL2_ttf" + "${MINGW_PACKAGE_PREFIX}-boost-libs" + "${MINGW_PACKAGE_PREFIX}-openal" + "${MINGW_PACKAGE_PREFIX}-physfs" + "${MINGW_PACKAGE_PREFIX}-${_realname}-data=${_dataver}") +makedepends=("${MINGW_PACKAGE_PREFIX}-cmake" + "${MINGW_PACKAGE_PREFIX}-ninja" + "${MINGW_PACKAGE_PREFIX}-cc" + "${MINGW_PACKAGE_PREFIX}-boost" + "${MINGW_PACKAGE_PREFIX}-glm" + "${MINGW_PACKAGE_PREFIX}-nlohmann-json" + "${MINGW_PACKAGE_PREFIX}-gtest") +source=("${msys2_repository_url}/archive/${_realname}-${_pkgver}/colobot-${_realname}-${_pkgver}.tar.gz") +sha256sums=('047eb2bc96725598d918c5b500928e3a08fa3e6e7e730a82169da4524b03ddad') + +build() { + declare -a extra_config + if check_option "debug" "n"; then + extra_config+=('-DCMAKE_BUILD_TYPE=Release' + '-DDEV_BUILD=0') + else + extra_config+=('-DCMAKE_BUILD_TYPE=Debug' + '-DDEV_BUILD=1') + fi + + MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=;-DCOLOBOT_INSTALL" \ + cmake \ + -GNinja \ + -DCMAKE_INSTALL_PREFIX="${MINGW_PREFIX}" \ + "${extra_config[@]}" \ + -DOPENAL_SOUND=1 \ + -DASSERTS=1 \ + -DTESTS=1 \ + -DUSE_RELATIVE_PATHS=ON \ + -DCOLOBOT_INSTALL_BIN_DIR="${MINGW_PREFIX}"/bin \ + -DCOLOBOT_INSTALL_LIB_DIR="${MINGW_PREFIX}"/bin \ + -S "colobot-${_realname}-${_pkgver}" \ + -B "build-${MSYSTEM}" + + cmake --build "build-${MSYSTEM}" +} + +check() { + cmake --build "build-${MSYSTEM}" --target test +} + +package() { + DESTDIR="${pkgdir}" cmake --install "build-${MSYSTEM}" + + install -Dm644 "${srcdir}/colobot-${_realname}-${_pkgver}/LICENSE.txt" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE.txt" +}