summaryrefslogtreecommitdiffstats
path: root/abs/extra/meson/arch-meson
blob: 88af9d4009f3bbb901297c15d7f37edeea2e2639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash -ex
# Highly opinionated wrapper for Arch Linux packaging

exec meson setup \
  --prefix         /usr \
  --libdir         /usr/lib \
  --libexecdir     /usr/lib \
  --bindir         /usr/bin \
  --sbindir        /usr/bin \
  --includedir     /usr/include \
  --datadir        /usr/share \
  --mandir         /usr/share/man \
  --infodir        /usr/share/info \
  --localedir      /usr/share/locale \
  --sysconfdir     /etc \
  --localstatedir  /var \
  --sharedstatedir /var/lib \
  --buildtype      release \
  --auto-features  enabled \
  --wrap-mode      nofallback \
  -D               b_lto=true \
  -D               b_pie=true \
  "$@"