ctucx.git: aur-packages

My personal aur-packages [deprecated in favor of nixos]

commit 398e367055dff9d83a0318ee9f818bb2401bf61e
Author: ctucx <c@ctu.cx>
Date: Wed, 24 Feb 2021 13:57:30 +0100

init
2 files changed, 36 insertions(+), 0 deletions(-)
A
ctucx-gallery/.SRCINFO
|
15
+++++++++++++++
A
ctucx-gallery/PKGBUILD
|
21
+++++++++++++++++++++
diff --git a/ctucx-gallery/.SRCINFO b/ctucx-gallery/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ctucx-gallery
+	pkgver = 0.1
+	pkgrel = 1
+	url = https://cgit.ctu.cx/gallery/
+	arch = x86_64
+	license = GPL-3
+	makedepends = nim
+	makedepends = nimble
+	depends = glibc
+	depends = imagemagick
+	source = ctucx-gallery-b961946a4f5a82274e94a21933bf7bb1dd59f78e.tar.gz::https://cgit.ctu.cx/gallery/snapshot/gallery-b961946a4f5a82274e94a21933bf7bb1dd59f78e.tar.gz
+	sha256sums = 4f4ca5fbd3e25b8f92928ac9aa9d036e3ef2009a367af7c957a79df6ba7fc730
+
+pkgname = ctucx-gallery
+
diff --git a/ctucx-gallery/PKGBUILD b/ctucx-gallery/PKGBUILD
@@ -0,0 +1,21 @@
+pkgname=ctucx-gallery
+pkgver=0.1
+pkgrel=1
+arch=('x86_64')
+url="https://cgit.ctu.cx/gallery/"
+license=('GPL-3')
+depends=('glibc' 'imagemagick')
+makedepends=( 'nim' 'nimble' )
+_commit="b961946a4f5a82274e94a21933bf7bb1dd59f78e"
+source=("${pkgname}-${_commit}.tar.gz::https://cgit.ctu.cx/gallery/snapshot/gallery-${_commit}.tar.gz")
+sha256sums=('4f4ca5fbd3e25b8f92928ac9aa9d036e3ef2009a367af7c957a79df6ba7fc730')
+
+build() {
+  cd $srcdir/gallery-${_commit}
+  nimble build -d:release -y
+}
+
+package() {
+  install -Dm755 ${srcdir}/gallery-${_commit}/gallery ${pkgdir}/usr/bin/ctucx-gallery
+  install -Dm755 ${srcdir}/gallery-${_commit}/sample.config ${pkgdir}/etc/ctucx-${pkgname}.conf
+}