# Maintainer: Antoine Viallon pkgname=ananicy-cpp pkgver=0.7.2 pkgrel=1 pkgdesc="Ananicy Cpp is a full rewrite of Ananicy in C++, featuring lower CPU and RAM usage." url="https://gitlab.com/ananicy-cpp/ananicy-cpp/" license=(GPLv3) source=( "https://gitlab.com/ananicy-cpp/${pkgname}/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz" ) md5sums=('27b75e164a792a3591222a2d5389df66') arch=(x86_64 i386 armv7h) depends=(fmt spdlog nlohmann-json systemd) makedepends=(cmake git) optdepends=("ananicy: community rules") prepare() { cd "$pkgname-v${pkgver}" mkdir -p build cd build cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DUSE_EXTERNAL_SPDLOG=ON \ -DUSE_EXTERNAL_JSON=ON \ -DUSE_EXTERNAL_FMTLIB=OFF \ -DVERSION=${pkgver} } build() { cd "$pkgname-v${pkgver}/build" cmake --build . } package() { cd "$pkgname-v${pkgver}/build" export DESTDIR="$pkgdir" cmake --install . install -m755 -d "$pkgdir/etc/ananicy.d" }