summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Viallon2021-12-16 13:59:42 +0100
committerAntoine Viallon2021-12-16 13:59:42 +0100
commitcbdd75ff8b143290bb5854d7e4e88567fa5789e0 (patch)
treea365bad1aac331c9a3ae83cb3856c7f43ae75bef
parent862b109aac189fd2e42ea20dadbe5b0856d90b05 (diff)
downloadaur-cbdd75ff8b143290bb5854d7e4e88567fa5789e0.tar.gz
Add std-format submodule support + only build ananicy-cpp and only install Runtime component
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD18
2 files changed, 16 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8149bbfadab..72c935d2a91 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.r0.g3ae336b
+ pkgver = 1.0.0.rc5.r10.g0adc86c
pkgrel = 1
arch = x86_64
arch = i386
@@ -16,6 +16,8 @@ pkgbase = ananicy-cpp-git
provides = ananicy-cpp
conflicts = ananicy-cpp
source = git+https://gitlab.com/ananicy-cpp/ananicy-cpp.git
+ source = git+https://gitlab.com/ananicy-cpp/stl-polyfills/std-format.git
+ md5sums = SKIP
md5sums = SKIP
pkgname = ananicy-cpp-git
diff --git a/PKGBUILD b/PKGBUILD
index df4c7d814cb..ffa804f87bf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,11 +3,14 @@
pkgname=ananicy-cpp-git
_pkgname=ananicy-cpp
-pkgver=1.0.0.rc5.r0.g3ae336b
+pkgver=1.0.0.rc5.r10.g0adc86c
pkgrel=1
pkgdesc="Ananicy Cpp is a full rewrite of Ananicy in C++, featuring lower CPU and RAM usage."
-source=("git+https://gitlab.com/ananicy-cpp/ananicy-cpp.git")
-md5sums=('SKIP')
+source=(
+ "git+https://gitlab.com/ananicy-cpp/ananicy-cpp.git"
+ "git+https://gitlab.com/ananicy-cpp/stl-polyfills/std-format.git"
+)
+md5sums=('SKIP' 'SKIP')
arch=(x86_64 i386 armv7h)
depends=(fmt spdlog nlohmann-json systemd)
makedepends=(cmake git gcc)
@@ -22,6 +25,11 @@ pkgver() {
prepare() {
cd "$_pkgname"
+
+ git submodule init
+ git config submodule."external/std-format".url "${srcdir}/std-format"
+ git submodule update
+
mkdir -p build
cd build
@@ -35,13 +43,13 @@ prepare() {
build() {
cd "$_pkgname/build"
- cmake --build .
+ cmake --build . --target ananicy-cpp
}
package() {
cd "$_pkgname/build"
export DESTDIR="$pkgdir"
- cmake --install .
+ cmake --install . --component Runtime
install -m755 -d "$pkgdir/etc/ananicy.d"
}