summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-01-21 16:05:19 +0100
committerAki <please@ignore.pl>2023-01-21 16:05:19 +0100
commit87ea240a28630d38dbea89f05eff0ff78da27025 (patch)
tree2089d1ae375d5ff3715b43c263cc626b337266a7
parent845740548110db5605eb7536fdac8509939995d0 (diff)
downloadarch-ignore-87ea240a28630d38dbea89f05eff0ff78da27025.zip
arch-ignore-87ea240a28630d38dbea89f05eff0ff78da27025.tar.gz
arch-ignore-87ea240a28630d38dbea89f05eff0ff78da27025.tar.bz2
Added mingw-w64 version of entt package
-rw-r--r--.gitignore1
-rw-r--r--mingw-w64-entt/.SRCINFO16
-rw-r--r--mingw-w64-entt/PKGBUILD36
-rw-r--r--mingw-w64-entt/cmake_install_libdir.patch30
4 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 7e514e3..eda2bfe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+*.tar.gz
*.pkg.tar.zst
*.pkg.tar.zst.sig
pkg/
diff --git a/mingw-w64-entt/.SRCINFO b/mingw-w64-entt/.SRCINFO
new file mode 100644
index 0000000..6d81be5
--- /dev/null
+++ b/mingw-w64-entt/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = mingw-w64-nlohmann-json
+ pkgdesc = Header-only JSON library for Modern C++ (mingw-w64)
+ pkgver = 3.11.2
+ pkgrel = 1
+ url = https://github.com/nlohmann/json
+ arch = any
+ license = MIT
+ makedepends = mingw-w64-cmake
+ depends = mingw-w64-crt
+ options = !buildflags
+ options = !strip
+ options = staticlibs
+ source = https://github.com/nlohmann/json/archive/v3.11.2.tar.gz
+ sha256sums = d69f9deb6a75e2580465c6c4c5111b89c4dc2fa94e3a85fcd2ffcd9a143d9273
+
+pkgname = mingw-w64-nlohmann-json
diff --git a/mingw-w64-entt/PKGBUILD b/mingw-w64-entt/PKGBUILD
new file mode 100644
index 0000000..263e77d
--- /dev/null
+++ b/mingw-w64-entt/PKGBUILD
@@ -0,0 +1,36 @@
+pkgname=mingw-w64-entt
+pkgver=3.11.1
+pkgrel=1
+pkgdesc='A header-only, tiny and easy to use entity-component system (and much more) written in modern C++'
+url='https://skypjack.github.io/entt/'
+license=(MIT)
+arch=(any)
+depends=('mingw-w64-crt')
+makedepends=('mingw-w64-cmake')
+options=('!buildflags' '!strip' 'staticlibs')
+source=("https://github.com/skypjack/entt/archive/v${pkgver}.tar.gz" 'cmake_install_libdir.patch')
+sha256sums=('0ac010f232d3089200c5e545bcbd6480cf68b705de6930d8ff7cdb0a29f5b47b' 'SKIP')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+prepare() {
+ cd "${srcdir}/entt-${pkgver}"
+ patch --forward --strip=1 --input="${srcdir}/cmake_install_libdir.patch"
+}
+
+build() {
+ cd "${srcdir}/entt-${pkgver}"
+ for _arch in ${_architectures}; do
+ mkdir -p "build-${_arch}" && pushd "${_}"
+ ${_arch}-cmake -DCMAKE_BUILD_TYPE=Relase -DENTT_USE_LIBCPP=OFF _DENTT_BUULD_TESTING=OFF ..
+ make
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "${srcdir}/entt-${pkgver}/build-${_arch}"
+ make install DESTDIR="$pkgdir"
+ done
+}
diff --git a/mingw-w64-entt/cmake_install_libdir.patch b/mingw-w64-entt/cmake_install_libdir.patch
new file mode 100644
index 0000000..ca21474
--- /dev/null
+++ b/mingw-w64-entt/cmake_install_libdir.patch
@@ -0,0 +1,30 @@
+diff '--color=auto' --unified --recursive --text entt-3.11.1.orig/CMakeLists.txt entt-3.11.1.new/CMakeLists.txt
+--- entt-3.11.1.orig/CMakeLists.txt 2022-12-02 09:29:20.000000000 +0100
++++ entt-3.11.1.new/CMakeLists.txt 2023-01-21 16:02:09.043386666 +0100
+@@ -262,7 +262,7 @@
+ configure_package_config_file(
+ ${EnTT_SOURCE_DIR}/cmake/in/EnTTConfig.cmake.in
+ EnTTConfig.cmake
+- INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/EnTT/cmake
++ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/EnTT
+ )
+
+ export(
+@@ -274,7 +274,7 @@
+ install(
+ EXPORT EnTTTargets
+ FILE EnTTTargets.cmake
+- DESTINATION ${CMAKE_INSTALL_LIBDIR}/EnTT/cmake
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/EnTT
+ NAMESPACE EnTT::
+ )
+
+@@ -282,7 +282,7 @@
+ FILES
+ ${PROJECT_BINARY_DIR}/EnTTConfig.cmake
+ ${PROJECT_BINARY_DIR}/EnTTConfigVersion.cmake
+- DESTINATION ${CMAKE_INSTALL_LIBDIR}/EnTT/cmake
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/EnTT
+ )
+
+ install(DIRECTORY src/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})