blob: 263e77d64300f6028f499bc852ad12ab21529a7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
}
|