summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b653cf7786c8f29aa7687fd4825cf22491d11dc6 (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
pkgname=mingw-w64-sparsehash
pkgver=2.0.4
pkgrel=1
pkgdesc="Library that contains several hash-map implementations, including implementations that optimize for space or speed. (mingw-w64)"
arch=("any")
url="https://github.com/sparsehash/sparsehash"
license=('BSD')
makedepends=(mingw-w64-configure)
options=(staticlibs !strip !buildflags)
source=("https://github.com/sparsehash/sparsehash/archive/sparsehash-$pkgver.tar.gz")
sha256sums=('8cd1a95827dfd8270927894eb77f62b4087735cbede953884647f16c521c7e58')

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

build() {
  cd "$srcdir"/sparsehash-sparsehash-$pkgver
  for _arch in ${_architectures}; do
    mkdir -p build-${_arch} && pushd build-${_arch}
    ${_arch}-configure
    make
    popd
  done
}

package() {
  for _arch in ${_architectures}; do
    cd "$srcdir"/sparsehash-sparsehash-$pkgver/build-${_arch}
    make DESTDIR="$pkgdir" install
  done
}