diff options
author | Christopher Reimer | 2023-01-21 16:19:57 +0100 |
---|---|---|
committer | Christopher Reimer | 2023-01-21 16:19:57 +0100 |
commit | 5581c2ae2d698d46cc9f0cfa4d3763e532305cfc (patch) | |
tree | 729f34e31fa73540e110672849074ed744df05be | |
parent | dee749d1932a7bd75da655740cdeafb84489034e (diff) | |
download | aur-5581c2ae2d698d46cc9f0cfa4d3763e532305cfc.tar.gz |
Update opengothic 0.64
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | PKGBUILD | 63 | ||||
-rw-r--r-- | bullet_dynamic.diff | 23 | ||||
-rw-r--r-- | zenlib_dynamic_physfs.diff | 29 |
4 files changed, 58 insertions, 87 deletions
@@ -1,6 +1,6 @@ pkgbase = opengothic pkgdesc = Open source remake of Gothic 2: Night of the raven - pkgver = 0.63 + pkgver = 0.64 pkgrel = 1 url = https://github.com/Try/OpenGothic arch = x86_64 @@ -13,21 +13,29 @@ pkgbase = opengothic depends = alsa-lib depends = gcc-libs depends = libx11 + depends = libxcursor depends = vulkan-icd-loader - depends = bullet - depends = physfs + depends = spirv-cross options = !emptydirs - source = git+https://github.com/Try/OpenGothic#commit=15d89bca24c04bfdf287d9b5ec12a65c9cb69a49 - source = git+https://github.com/Try/Tempest.git#commit=827449a81776ecfc8e6b34314abf5d5eb9b5134b - source = git+https://github.com/schellingb/TinySoundFont.git#commit=d4ffcdc8a34d3f61f22e4b283b4c100f5adf4b82 - source = git+https://github.com/Try/ZenLib.git#commit=65b2c1f34e3d3dcd4dd6e6e1c9526996f76e0fe3 - source = bullet_dynamic.diff - source = zenlib_dynamic_physfs.diff + source = git+https://github.com/Try/OpenGothic#commit=588f099119e6b8ed30ff3f18328de81df887af24 + source = git+https://github.com/Try/Tempest.git + source = git+https://github.com/schellingb/TinySoundFont.git + source = git+https://github.com/bulletphysics/bullet3.git + source = git+https://github.com/lmichaelis/phoenix.git + source = git+https://github.com/doctest/doctest.git + source = git+https://github.com/g-truc/glm.git + source = git+https://github.com/foonathan/lexy.git + source = git+https://github.com/lmichaelis/phoenix-libsquish.git + source = git+https://github.com/mandreyel/mio.git + sha512sums = SKIP + sha512sums = SKIP + sha512sums = SKIP + sha512sums = SKIP + sha512sums = SKIP + sha512sums = SKIP sha512sums = SKIP sha512sums = SKIP sha512sums = SKIP sha512sums = SKIP - sha512sums = 5aa822c283aefa0da9c75ae87e37ec66d50e71f65191187bb15e48a43fb6ea713278dd4a056e9ad04a25a622cdd85834ba5e2c4bf60bd178a46ce4eaba082981 - sha512sums = 331db32a87762503d4b6abda25369497e8e8660ea381b4363a7a6fccda65d4b1595f83fb27e05f368a943b2b00968ecb5ae8f2323a40ac85f37d68ed4bb172d0 pkgname = opengothic @@ -1,52 +1,64 @@ # Maintainer: Christopher Reimer <mail at c-reimer dot de> pkgname=opengothic -pkgver=0.63 +pkgver=0.64 pkgrel=1 pkgdesc="Open source remake of Gothic 2: Night of the raven" arch=('x86_64') url='https://github.com/Try/OpenGothic' license=('MIT') -depends=('alsa-lib' 'gcc-libs' 'libx11' 'vulkan-icd-loader' 'bullet' 'physfs') +depends=('alsa-lib' 'gcc-libs' 'libx11' 'libxcursor' 'vulkan-icd-loader' 'spirv-cross') makedepends=('cmake' 'git' 'glslang' 'libglvnd' 'vulkan-headers') -source=("git+https://github.com/Try/OpenGothic#commit=15d89bca24c04bfdf287d9b5ec12a65c9cb69a49" #tag=v0.63 - "git+https://github.com/Try/Tempest.git#commit=827449a81776ecfc8e6b34314abf5d5eb9b5134b" - "git+https://github.com/schellingb/TinySoundFont.git#commit=d4ffcdc8a34d3f61f22e4b283b4c100f5adf4b82" - "git+https://github.com/Try/ZenLib.git#commit=65b2c1f34e3d3dcd4dd6e6e1c9526996f76e0fe3" - "bullet_dynamic.diff" - "zenlib_dynamic_physfs.diff" +source=("git+https://github.com/Try/OpenGothic#commit=588f099119e6b8ed30ff3f18328de81df887af24" #tag=v0.64 + "git+https://github.com/Try/Tempest.git" + "git+https://github.com/schellingb/TinySoundFont.git" + "git+https://github.com/bulletphysics/bullet3.git" + "git+https://github.com/lmichaelis/phoenix.git" + "git+https://github.com/doctest/doctest.git" + "git+https://github.com/g-truc/glm.git" + "git+https://github.com/foonathan/lexy.git" + "git+https://github.com/lmichaelis/phoenix-libsquish.git" + "git+https://github.com/mandreyel/mio.git" ) sha512sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' - '5aa822c283aefa0da9c75ae87e37ec66d50e71f65191187bb15e48a43fb6ea713278dd4a056e9ad04a25a622cdd85834ba5e2c4bf60bd178a46ce4eaba082981' - '331db32a87762503d4b6abda25369497e8e8660ea381b4363a7a6fccda65d4b1595f83fb27e05f368a943b2b00968ecb5ae8f2323a40ac85f37d68ed4bb172d0') + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP') options=('!emptydirs') prepare() { - cd "${srcdir}/ZenLib" - patch -p1 -i "$srcdir/zenlib_dynamic_physfs.diff" - cd "${srcdir}/OpenGothic" - patch -p1 -i "$srcdir/bullet_dynamic.diff" - rmdir lib/ZenLib - ln -sf "$srcdir"/ZenLib/ lib/ZenLib - - rmdir lib/Tempest - ln -sf "$srcdir"/Tempest lib/Tempest + git submodule init + git config submodule.lib/Tempest.url "$srcdir/Tempest" + git config submodule.lib/bullet3.url "$srcdir/bullet3" + git config submodule.lib/TinySoundFont.url "$srcdir/TinySoundFont" + git config submodule.lib/phoenix.url "$srcdir/phoenix" + git -c protocol.file.allow=always submodule update - rmdir lib/TinySoundFont - ln -sf "$srcdir"/TinySoundFont lib/TinySoundFont + cd "${srcdir}/OpenGothic/lib/phoenix" + git submodule init + git config submodule.vendor/doctest.url "$srcdir/doctest" + git config submodule.vendor/mio.url "$srcdir/mio" + git config submodule.vendor/lexy.url "$srcdir/lexy" + git config submodule.vendor/libsquish.url "$srcdir/phoenix-libsquish" + git config submodule.vendor/glm.url "$srcdir/glm" + git -c protocol.file.allow=always submodule update } build() { cd "OpenGothic" + cmake -B build \ - -DBUILD_SHARED_LIBS=ON \ + -DOpenGL_GL_PREFERENCE=GLVND \ + -DBUILD_SHARED_LIBS=OFF \ + -DTEMPEST_BUILD_SHARED=OFF \ -DCMAKE_BUILD_TYPE=None \ - -DOpenGL_GL_PREFERENCE='GLVND' \ - -DPHYSFS_BUILD_SHARED='OFF' \ -DCMAKE_INSTALL_PREFIX=/usr \ -DSPIRV_CROSS_STATIC=OFF \ -DSPIRV_CROSS_SHARED=OFF \ @@ -57,6 +69,9 @@ build() { package() { cd "OpenGothic" DESTDIR="${pkgdir}" make -C build install + rm -r "${pkgdir}/usr/lib" + rm -r "${pkgdir}/usr/include" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } diff --git a/bullet_dynamic.diff b/bullet_dynamic.diff deleted file mode 100644 index b2c7fa4e949f..000000000000 --- a/bullet_dynamic.diff +++ /dev/null @@ -1,23 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index e0c193f9..aa927c8d 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -111,16 +111,10 @@ set(GLFW_BUILD_EXAMPLES OFF CACHE INTERNAL "") - set(GLFW_BUILD_TESTS OFF CACHE INTERNAL "") - set(GLFW_BUILD_DOCS OFF CACHE INTERNAL "") - set(BUILD_BULLET3 OFF CACHE INTERNAL "") # Can use bullet2, bullet3 wants to build examples... --add_subdirectory(lib/bullet3) - if(NOT MSVC) -- target_compile_options(BulletDynamics PRIVATE -Wno-argument-outside-range) -- target_compile_options(BulletInverseDynamics PRIVATE -Wno-argument-outside-range) -- target_compile_options(BulletSoftBody PRIVATE -Wno-argument-outside-range) -- target_compile_options(Bullet3Common PRIVATE -Wno-argument-outside-range) -- target_compile_options(BulletCollision PRIVATE -Wno-argument-outside-range) -- target_compile_options(LinearMath PRIVATE -Wno-argument-outside-range) -+ find_package( Bullet REQUIRED ) - endif() --include_directories(lib/bullet3/src) -+include_directories(${BULLET_INCLUDE_DIR}) - target_link_libraries(${PROJECT_NAME} BulletDynamics BulletCollision LinearMath) - - # script for launching in binary directory diff --git a/zenlib_dynamic_physfs.diff b/zenlib_dynamic_physfs.diff deleted file mode 100644 index 94a74dc3299e..000000000000 --- a/zenlib_dynamic_physfs.diff +++ /dev/null @@ -1,29 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 6c350f4..abb5f63 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -11,10 +11,8 @@ set(PHYSFS_BUILD_SHARED OFF) - set(CMAKE_CXX_STANDARD 14) - - # 3rd-party dependencies --set(PHYSFS_BUILD_TEST OFF CACHE STRING "" FORCE) --add_subdirectory(lib/physfs) -- --include_directories(lib/physfs/src) -+find_package( PhysFS REQUIRED ) -+include_directories(${PHYSFS_INCLUDE_DIR}) - include_directories(.) - - # Internal libraries -diff --git a/vdfs/CMakeLists.txt b/vdfs/CMakeLists.txt -index 505ec46..e09006e 100644 ---- a/vdfs/CMakeLists.txt -+++ b/vdfs/CMakeLists.txt -@@ -13,6 +13,6 @@ if(MSVC) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /DNOMINMAX") - endif() - --target_link_libraries(vdfs physfs-static) -+target_link_libraries(vdfs physfs) - set_target_properties(vdfs PROPERTIES LINKER_LANGUAGE C) - target_include_directories(vdfs PUBLIC ..) |