summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorctucx <c@ctu.cx>2021-02-24 13:57:30 +0100
committerctucx <c@ctu.cx>2021-02-24 13:57:30 +0100
commitc5895b03381073bdc4d605bab9dd17184b509641 (patch)
treea1e35ce5ab49f09cbe755d9f799172f9bb51ccbe
downloadaur-ctucx-gallery-c5895b03381073bdc4d605bab9dd17184b509641.tar.gz
aur-ctucx-gallery-c5895b03381073bdc4d605bab9dd17184b509641.tar.bz2
aur-ctucx-gallery-c5895b03381073bdc4d605bab9dd17184b509641.zip
init
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD21
2 files changed, 36 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..0d26815
--- /dev/null
+++ b/.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/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..8c7a19e
--- /dev/null
+++ b/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
+}