blob: fac70e6a2ce24d242c203e722d2e3d55253b3f15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash -ex
# Highly opinionated wrapper for Arch Linux packaging
CARCH=$(. /etc/makepkg.conf; echo $CARCH)
if [ "${CARCH}" = "i486" ]; then
LTO="b_lto=false"
else
LTO="b_lto=true"
fi
exec meson setup \
--prefix /usr \
--libexecdir lib \
--sbindir bin \
--buildtype plain \
--auto-features enabled \
--wrap-mode nodownload \
-D "${LTO}" \
-D b_pie=true \
-D python.bytecompile=1 \
"$@"
|