mirror of
https://gitlab.com/slonkazoid/pkgbuild-sway-slonk-git.git
synced 2024-10-18 10:42:30 +03:00
Move meson to prepare(), to keep the build directory between builds
This greatly speeds up rebuilds when not much has changed and ccache isn’t used.
This commit is contained in:
parent
bd8d9da221
commit
54c712fdc1
1 changed files with 5 additions and 2 deletions
7
PKGBUILD
7
PKGBUILD
|
@ -28,10 +28,13 @@ pkgver() {
|
|||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${_pkgname}"
|
||||
meson -Dwerror=false --prefix /usr "$srcdir/build"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_pkgname}"
|
||||
rm -rf "$srcdir/build"
|
||||
meson -Dwerror=false --prefix /usr "$srcdir/build"
|
||||
ninja -C "$srcdir/build"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue