void-packages/srcpkgs/zola/template

34 lines
916 B
Bash

# Template file for 'zola'
pkgname=zola
version=0.5.1
revision=1
build_style=cargo
hostmakedepends="pkg-config"
makedepends="libressl-devel libsass-devel"
short_desc="Fast opinionated static site generator written in rust"
maintainer="Carson Page <pagem.carson@gmail.com>"
license="MIT"
homepage="https://github.com/getzola/zola"
changelog="https://github.com/getzola/zola/raw/master/CHANGELOG.md"
distfiles="https://github.com/getzola/zola/archive/v${version}.tar.gz"
checksum=d4fa5e70a8da2d2b544147508e8d44a081f19c7d6c002c32ee9661c7873d3c7c
case "$XBPS_TARGET_MACHINE" in
aarch64-musl) broken="https://github.com/nix-rust/nix/issues/951" ;;
esac
post_install() {
vlicense LICENSE
ln -sr ${DESTDIR}/usr/bin/zola ${DESTDIR}/usr/bin/gutenberg
}
gutenberg_package() {
archs=noarch
depends="zola-${version}_${revision}"
short_desc="Transition package for Zola"
pkg_install() {
vmove usr/bin/gutenberg
}
}