summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Viallon2022-01-12 23:18:34 +0100
committerAntoine Viallon2022-01-12 23:18:34 +0100
commit64e0accada913b88bcfe6e2cbbf0e2fcc0806baf (patch)
treee77b7e515c26255997c48be08d1d6ff7d6d58e09
parentcbdd75ff8b143290bb5854d7e4e88567fa5789e0 (diff)
downloadaur-64e0accada913b88bcfe6e2cbbf0e2fcc0806baf.tar.gz
Cleanup cmake commands
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD15
2 files changed, 7 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 72c935d2a91..e0dc0be1eb0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = ananicy-cpp-git
pkgdesc = Ananicy Cpp is a full rewrite of Ananicy in C++, featuring lower CPU and RAM usage.
- pkgver = 1.0.0.rc5.r10.g0adc86c
+ pkgver = 1.0.0.rc5.r13.g38ad7b1
pkgrel = 1
arch = x86_64
arch = i386
diff --git a/PKGBUILD b/PKGBUILD
index ffa804f87bf..62b87ec7c6c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=ananicy-cpp-git
_pkgname=ananicy-cpp
-pkgver=1.0.0.rc5.r10.g0adc86c
+pkgver=1.0.0.rc5.r13.g38ad7b1
pkgrel=1
pkgdesc="Ananicy Cpp is a full rewrite of Ananicy in C++, featuring lower CPU and RAM usage."
source=(
@@ -30,10 +30,7 @@ prepare() {
git config submodule."external/std-format".url "${srcdir}/std-format"
git submodule update
- mkdir -p build
- cd build
-
- cmake .. \
+ cmake -B build -S . \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_EXTERNAL_SPDLOG=ON \
@@ -42,14 +39,14 @@ prepare() {
}
build() {
- cd "$_pkgname/build"
- cmake --build . --target ananicy-cpp
+ cd "$_pkgname"
+ cmake --build build --target ananicy-cpp
}
package() {
- cd "$_pkgname/build"
+ cd "$_pkgname"
export DESTDIR="$pkgdir"
- cmake --install . --component Runtime
+ cmake --install build --component Runtime
install -m755 -d "$pkgdir/etc/ananicy.d"
}