void-packages/srcpkgs/zola/template
2020-08-09 10:45:27 +02:00

38 lines
954 B
Bash

# Template file for 'zola'
pkgname=zola
version=0.11.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=09840a55d13a81a7a04767d01e5e44cc3710e79c78f43f0ebde4a6a17e0728ca
case $XBPS_TARGET_MACHINE in
ppc*) broken="segfaults" ;;
esac
pre_build() {
export PKG_CONFIG_ALL_DYNAMIC=1
export RUSTONIG_SYSTEM_LIBONIG=1
}
post_install() {
vlicense LICENSE
ln -s 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
}
}