aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/zola/template
blob: 522259fbacdaf88f784c11eba6eb3f80664cae2d (plain) (blame)
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
31
32
33
34
# Template file for 'zola'
pkgname=zola
version=0.19.1
revision=1
build_style=cargo
build_helper=qemu
hostmakedepends="pkg-config"
makedepends="oniguruma-devel"
short_desc="Fast opinionated static site generator"
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
license="MIT"
homepage="https://github.com/getzola/zola"
changelog="https://raw.githubusercontent.com/getzola/zola/master/CHANGELOG.md"
distfiles="https://github.com/getzola/zola/archive/refs/tags/v${version}.tar.gz"
checksum=9926c3e7c64ee20a48dc292785c5a29f387c1fab639005ced894982f9c3d7258

post_install() {
	for shell in bash fish zsh; do
		vtargetrun ${DESTDIR}/usr/bin/zola completion ${shell} > zola.${shell}
		vcompletion zola.${shell} ${shell}
	done

	vlicense LICENSE

	ln -s zola ${DESTDIR}/usr/bin/gutenberg
}

gutenberg_package() {
	depends="zola-${version}_${revision}"
	short_desc="Transition package for Zola"
	pkg_install() {
		vmove usr/bin/gutenberg
	}
}