ctucx.git: alpine-pkgs

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

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
# Contributor: Leah (ctucx) <leah@ctu.cx>
# Maintainer: Leah (ctucx) <leah@ctu.cx>
pkgname=ctucx-gallery
pkgver=0.0.3
pkgrel=8
pkgdesc="gallery-generator written in nimlang, used for photos.ctu.cx"
url="https://cgit.ctu.cx/gallery"
arch="all"
license="MIT"
depends="imagemagick libexif"
makedepends="nim git nimble libexif-dev"
subpackages=""
_commit="010cafd5f54fbcce2add550c2b52b96e33d26f25"
source="${pkgname}-${_commit}.tar.gz::https://cgit.ctu.cx/gallery/snapshot/gallery-${_commit}.tar.gz"
builddir="${srcdir}/gallery-${_commit}/"

build() {
        cd ${builddir}
        nimble -y -d:release build
}

check() {
        :
}

package() {
        install -Dm755 ${builddir}/gallery ${pkgdir}/usr/bin/${pkgname}
	install -Dm755 ${builddir}/sample.config ${pkgdir}/etc/${pkgname}.conf.sample
}
sha512sums="c9f6f14f81a0f8a13be8cc2fcf48db812bcc2b3e9b7597252c72f68c9cb7bf8fca89e36ac339b0053ab538f33384af27c2c45f3a6f2b502dc24c7a2f89157409  ctucx-gallery-010cafd5f54fbcce2add550c2b52b96e33d26f25.tar.gz"