35 lines
945 B
Bash
35 lines
945 B
Bash
# Template file for 'zola'
|
|
pkgname=zola
|
|
version=0.19.2
|
|
revision=1
|
|
build_style=cargo
|
|
build_helper=qemu
|
|
hostmakedepends="pkg-config"
|
|
makedepends="oniguruma-devel"
|
|
short_desc="Fast opinionated static site generator"
|
|
maintainer="tranzystorekk <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=bae10101b4afff203f781702deeb0a60d3ab0c9f0c7a616a7c1e0c504c33c93f
|
|
|
|
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
|
|
}
|
|
}
|