summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordr460nf1r32021-04-26 14:09:22 +0200
committerdr460nf1r32021-04-26 14:09:22 +0200
commit6150b49999fc9c8a03e6e18a2c5b197add3bdc41 (patch)
treed1f1b53783d45ad2d041fa5541dd0c452eea3d18
downloadaur-6150b49999fc9c8a03e6e18a2c5b197add3bdc41.tar.gz
Initial upload
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD42
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..40ea1fb758f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = ananicy-cpp-git
+ pkgdesc = Ananicy Cpp is a full rewrite of Ananicy in C++, featuring lower CPU and RAM usage.
+ pkgver = r35.72dbc62
+ pkgrel = 1
+ arch = x86_64
+ arch = i386
+ arch = armv7h
+ makedepends = cmake
+ makedepends = git
+ makedepends = gcc
+ depends = ananicy
+ depends = fmt
+ depends = spdlog
+ depends = nlohmann-json
+ source = git+https://gitlab.com/aviallon/ananicy-cpp.git
+ md5sums = SKIP
+
+pkgname = ananicy-cpp-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d1f7c951dcc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: dr460nf1r3 <dr460nf1r3 at garudalinux dot org>
+
+pkgname=ananicy-cpp-git
+_pkgname=ananicy-cpp
+pkgver=r35.72dbc62
+pkgrel=1
+pkgdesc="Ananicy Cpp is a full rewrite of Ananicy in C++, featuring lower CPU and RAM usage."
+source=("git+https://gitlab.com/aviallon/ananicy-cpp.git")
+md5sums=(SKIP)
+arch=(x86_64 i386 armv7h)
+depends=(ananicy fmt spdlog nlohmann-json)
+makedepends=(cmake git gcc)
+
+pkgver() {
+ cd "$_pkgname"
+ echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$_pkgname"
+ 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=ON
+}
+
+build() {
+ cd "$_pkgname/build"
+ cmake --build .
+}
+
+package() {
+ cd "$_pkgname/build"
+ export DESTDIR="$pkgdir"
+ cmake --install .
+}
+