diff options
author | Jonathon Fernyhough | 2021-12-25 21:12:48 +0000 |
---|---|---|
committer | Jonathon Fernyhough | 2021-12-25 21:12:48 +0000 |
commit | f731a564dac67f59d5ab8c56d082f9c5d53d7cb6 (patch) | |
tree | 1b3d5844eb847ce34aa32404930b8df1b5cd681c /PKGBUILD | |
parent | 59ffebba65cc26fdf82b08232126bbde7c2cb95c (diff) | |
download | aur-f731a564dac67f59d5ab8c56d082f9c5d53d7cb6.tar.gz |
Apply cmake --build/--install; thank you cajm!
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,7 +1,7 @@ # Maintainer: Marc Tiehuis <marctiehuis at gmail.com> pkgname=zig-git -pkgver=0.8.1 +pkgver=0.9.0 pkgrel=1 pkgdesc="a programming language prioritizing robustness, optimality, and clarity" arch=('i686' 'x86_64') @@ -19,10 +19,11 @@ pkgver() { } build() { - mkdir -p build - cd build - cmake ../zig -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr -DZIG_PREFER_CLANG_CPP_DYLIB=ON - make DESTDIR=. + cmake -B build -S zig \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DZIG_PREFER_CLANG_CPP_DYLIB=ON + cmake --build build } check() { @@ -32,5 +33,5 @@ check() { package() { install -Dm644 zig/LICENSE "$pkgdir/usr/share/licenses/$provides/LICENSE" - make -C build DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" cmake --install build } |