void-packages/srcpkgs/zola/template

42 lines
1.1 KiB
Bash

# Template file for 'zola'
pkgname=zola
version=0.10.0
revision=1
build_style=cargo
hostmakedepends="pkg-config"
makedepends="libressl-devel libsass-devel oniguruma-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=af8160f1536c9b69153dc041a2e23f359b6acb2a9a2235333e887397d8a6634d
broken="https://build.voidlinux.org/builders/x86_64-musl_builder/builds/26379/steps/shell_3/logs/stdio"
case $XBPS_TARGET_MACHINE in
ppc*) broken="segfaults" ;;
armv6l-musl) broken="triggers segfault in rustc" ;;
esac
pre_build() {
export PKG_CONFIG_ALL_DYNAMIC=1
export RUSTONIG_SYSTEM_LIBONIG=1
}
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
}
}