diff options
author | Ferdinand Bachmann | 2022-01-23 23:09:36 +0100 |
---|---|---|
committer | Ferdinand Bachmann | 2022-01-23 23:09:36 +0100 |
commit | b4e2d34aafdd8676e203776707d93b97562b9faf (patch) | |
tree | 072d0933a7308dbbfaa13c63c31e966568c13391 | |
parent | f957d6bf97bcb9c40512fa9e3c91d0726388bcf6 (diff) | |
download | aur-b4e2d34aafdd8676e203776707d93b97562b9faf.tar.gz |
fix prepare breaking debug prefix map somehow
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -34,18 +34,23 @@ makedepends=( source=("${pkgname}::git+${url}.git") md5sums=('SKIP') -prepare () { +_meson_configure() { + local _builddir="$1" CFLAGS="$CFLAGS -fsanitize=address,undefined" arch-meson \ --buildtype=debug \ -Dwerror=false \ -Dexamples=false \ - "${pkgname}" build + "${pkgname}" "${_builddir}" +} + +prepare () { + _meson_configure build-pkgver } pkgver () { ( set -o pipefail - meson introspect --projectinfo build \ + meson introspect --projectinfo build-pkgver \ | awk 'match($0, /"version":\s*"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)"/, ret) {printf "%s",ret[1]}' ) cd "${pkgname}" @@ -53,6 +58,7 @@ pkgver () { } build () { + _meson_configure build meson compile -C build } |