blob: d7bad5e30eaf6698ff678e23effc3942ea9ed405 (
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
|
# Maintainer: Emil Velikov <emil.l.velikov@gmail.com>
pkgname=mingw-w64-waffle
pkgver=1.8.1
pkgrel=1
pkgdesc='a library for choosing window system and OpenGL API at runtime (mingw-w64)'
arch=('any')
url='https://waffle.freedesktop.org'
license=('BSD-2-Clause')
depends=('mingw-w64-crt')
makedepends=('mingw-w64-meson' 'cmake')
options=('!strip' '!buildflags' 'staticlibs')
source=(https://waffle.freedesktop.org/files/release/waffle-${pkgver}/waffle-${pkgver}.tar.xz{,.asc})
sha256sums=('f616c0ca6072d36bf81fb79a3695799973a978775e0213744bf0a39be6367425'
'SKIP')
validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
local meson_args=(
-D b_lto=false
-D strip=false
-D build-manpages=false
-D build-htmldocs=false
-D build-examples=false
)
cd "waffle-$pkgver"
for _arch in ${_architectures}; do
${_arch}-meson build-${_arch} "${meson_args[@]}"
meson compile -C build-${_arch}
done
}
package() {
cd "waffle-$pkgver"
for _arch in ${_architectures}; do
meson install -C "build-${_arch}" --destdir "$pkgdir"
rm -r "$pkgdir/usr/${_arch}/share"
${_arch}-strip --strip-unneeded "$pkgdir/usr/${_arch}/bin/"*.dll
${_arch}-strip -g "$pkgdir/usr/${_arch}/lib/"*.a
done
}
|