blob: 5fb783a4c38573561ab386ce3e4fd42da1c88cf9 (
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
51
52
53
54
55
|
# Maintainer: Emil Velikov <emil.l.velikov@gmail.com>
# Contributor: Yevhenii Kolesnikov <sigexp.acc@gmail.com>
# Contributor: Ben Widawsky <ben@bwidawsk.net>
# Contributor: Lina Versace <lina@kiwitree.net>
pkgname=lib32-waffle
pkgver=1.8.1
pkgrel=1
pkgdesc='a library for choosing window system and OpenGL API at runtime (32 bits)'
arch=('x86_64')
url='https://waffle.freedesktop.org'
license=('BSD-2-Clause')
depends=('lib32-libx11' 'lib32-libxcb' "waffle=${pkgver}")
optdepends=('lib32-libgl: for OpenGL or GLX support'
'lib32-libgles: for GLES support'
'lib32-libegl: for gbm, surfaceless, x11_egl or wayland support'
'lib32-mesa: for gbm support'
'lib32-libdrm: for gbm support'
'lib32-wayland: for wayland support')
makedepends=('meson' 'xcb-proto' 'lib32-mesa' 'gcc-multilib' 'wayland-protocols')
source=(https://waffle.freedesktop.org/files/release/waffle-${pkgver}/waffle-${pkgver}.tar.xz{,.asc})
sha256sums=('f616c0ca6072d36bf81fb79a3695799973a978775e0213744bf0a39be6367425'
'SKIP')
validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D')
build() {
local meson_args=(
--buildtype release
--libdir=/usr/lib32
-D build-manpages=false
-D build-htmldocs=false
-D build-examples=false
)
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
arch-meson "waffle-$pkgver" build "${meson_args[@]}"
meson compile -C build
}
package() {
meson install -C build --destdir "$pkgdir"
mv "$pkgdir/usr/bin/wflinfo" "$pkgdir/usr/bin/wflinfo32"
rm -rf "$pkgdir/usr/include"
rm -rf "$pkgdir/usr/share"
install -m755 -d "$pkgdir/usr/share/licenses"
ln -s "waffle" "$pkgdir/usr/share/licenses/lib32-waffle"
}
|