Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/meson/arch-meson
blob: 577edca4139be918574c60e28757f84f16a51a17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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 \
  "$@"