summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: c4dcaa0b4424fca2eee846a79dee50efb8f561a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pkgname=ctucx-gallery
pkgver=0.1
pkgrel=11
arch=('x86_64')
pkgdesc="gallery as static-site-generator"
url="https://cgit.ctu.cx/gallery/"
license=('GPL-3')
depends=('glibc' 'imagemagick' 'libexif')
makedepends=( 'nim' 'nimble' )
_commit="6434e8a8c809c857c9349f819c9a7de65a23d184"
source=("${pkgname}-${_commit}.tar.gz::https://cgit.ctu.cx/gallery/snapshot/gallery-${_commit}.tar.gz")
sha256sums=('dc565ea7d3a7bafbb49e5897620956ec23fb51bb5a0e3a6e39488dd7db2b844a')

build() {
  cd $srcdir/gallery-${_commit}
  nimble build -d:release -y
}

package() {
  install -Dm755 ${srcdir}/gallery-${_commit}/gallery ${pkgdir}/usr/bin/ctucx-gallery
}