blob: d632ae869cdf590a7c9abad2523512f0845a36cb (
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-muparser
pkgver=2.3.4
pkgrel=1
pkgdesc="A fast math parser library (mingw-w64)"
arch=('any')
url="http://muparser.sourceforge.net/"
depends=('mingw-w64-crt')
makedepends=('mingw-w64-cmake')
license=('custom')
options=('!buildflags' 'staticlibs' '!strip')
source=("https://github.com/beltoforion/muparser/archive/v${pkgver}.tar.gz")
sha256sums=('0c3fa54a3ebf36dda0ed3e7cd5451c964afbb15102bdbcba08aafb359a290121')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd "$srcdir"/muparser-${pkgver}
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-cmake -DENABLE_SAMPLES=OFF ..
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "$srcdir/muparser-${pkgver}/build-${_arch}"
make DESTDIR="$pkgdir" install
install -d "$pkgdir"/usr/${_arch}/bin/
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done
}
|