summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6612be8aa14072631ed9fb64aeac106ad043dcc (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
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>

pkgname=mingw-w64-robinmap
pkgver=0.6.3
pkgrel=2
pkgdesc="A C++ implementation of a fast hash map and hash set using robin hood hashing (mingw-w64)"
url="https://github.com/Tessil/robin-map"
license=("MIT")
depends=(
	"mingw-w64-crt"
)
makedepends=("mingw-w64-cmake")
arch=("any")
options=(!strip !buildflags staticlibs)
optdepends=()
sha256sums=(
	"e6654c8c2598f63eb0b1d52ff8bdf39cfcc91d81dd5d05274a6dca91241cd72f"
)
source=(
	"https://github.com/Tessil/robin-map/archive/v${pkgver}.tar.gz"
)

_architectures="i686-w64-mingw32 x86_64-w64-mingw32"

build() {
	for _arch in ${_architectures}; do
		${_arch}-cmake -S "robin-map-${pkgver}" -B "build-${_arch}"
		make -C "build-${_arch}"
	done
}

package() {
	for _arch in ${_architectures}; do
		make DESTDIR="${pkgdir}" -C "build-${_arch}" install
	done
}