Package Details: rttr 0.9.6-4

Git Clone URL: https://aur.archlinux.org/rttr.git (read-only, click to copy)
Package Base: rttr
Description: C++ Reflection Library
Upstream URL: https://github.com/rttrorg/rttr
Licenses: MIT
Provides: librttr_core.so
Submitter: arojas
Maintainer: None
Last Packager: lmartinez-mirror
Votes: 5
Popularity: 0.014509
First Submitted: 2021-12-10 07:37 (UTC)
Last Updated: 2022-04-03 17:08 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

black_desk commented on 2022-08-03 15:42 (UTC) (edited on 2022-08-03 15:42 (UTC) by black_desk)

From 088d50bc8357c523789cf42d480aa2b914262475 Mon Sep 17 00:00:00 2001
From: black-desk <me@black-desk.cn>
Date: Wed, 3 Aug 2022 23:34:28 +0800
Subject: [PATCH] Use cmake commands to build and install.

---
 PKGBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 7644c57..3d9c1b8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -33,11 +33,11 @@ build() {
        -DBUILD_PACKAGE=OFF \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -Wno-dev
-   make -C build
+   cmake --build build
 }

 package() {
-   make -C build DESTDIR="$pkgdir" install
+   cmake --install build --prefix "$pkgdir"
    cd "$pkgname-$pkgver"
    install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
-- 
2.36.1

I have some environment var to make cmake generate ninja.build. So there will be no makefile in my build dir.

Apply this patch will make cmake work.