35 lines
942 B
Bash
35 lines
942 B
Bash
# 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
|
|
}
|
|
}
|