diff options
author | Daniil Kovalev | 2022-11-24 17:15:47 +0300 |
---|---|---|
committer | polslinux | 2022-12-11 11:23:44 +0000 |
commit | 5613b5b4de8955c8c4d0f09f29bf5c4337712718 (patch) | |
tree | 722196dfad8a6b3b2acb75b11f06e5bbf1a40903 | |
parent | 2beaeae594f07970c967ebb5d13d8336a796f874 (diff) | |
download | aur-5613b5b4de8955c8c4d0f09f29bf5c4337712718.tar.gz |
Use cmake build and install wrappers instead of make ones
In case of custom `CMAKE_GENERATOR` environment variable (e.g. `Ninja`) we
have to use cmake wrappers instead of raw make commands in order to support
different build systems.
-rw-r--r-- | PKGBUILD | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -19,10 +19,10 @@ build() { cd "$pkgname-$pkgver" mkdir build && cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib - make + cmake --build . --target all } package() { cd "$pkgname-$pkgver/build" - make DESTDIR="$pkgdir" install + cmake --install . --prefix="$pkgdir/usr" } |