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 }