void-packages/srcpkgs/zola/template

34 lines
916 B
Bash

# Template file for 'zola'
pkgname=zola
version=0.6.0
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=647f31300f4e468374dfb325b59a08cb31c4ed855b2e5b677131464ae3ee9925
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
}
}