blob: f604ec81199204e35d11dc35668721a22ef592bd (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
pkgname=mingw-w64-asmjit
pkgver=r256.63d1c22
pkgrel=1
pkgdesc="Complete x86/x64 JIT and Remote Assembler for C++ (mingw-w64)"
arch=('any')
url="https://github.com/kobalicek/asmjit"
license=('BSD')
depends=('mingw-w64-crt')
makedepends=('mingw-w64-gcc' 'mingw-w64-cmake' 'git')
options=('!buildflags' 'staticlibs' '!strip')
source=("git+https://github.com/kobalicek/asmjit.git")
md5sums=('SKIP')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
pkgver() {
cd "$srcdir/asmjit"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build () {
cd "$srcdir/asmjit"
for _arch in ${_architectures}; do
mkdir -p build-${_arch}-static && pushd build-${_arch}-static
${_arch}-cmake \
-DASMJIT_STATIC=ON \
..
make
popd
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-cmake \
..
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "$srcdir/asmjit/build-${_arch}-static"
make DESTDIR="$pkgdir" install
cd "$srcdir/asmjit/build-${_arch}"
make DESTDIR="$pkgdir" install
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done
}
|