void-packages/srcpkgs/zola/template
2019-06-13 12:38:22 +02:00

39 lines
1.1 KiB
Bash

# Template file for 'zola'
pkgname=zola
version=0.7.0
revision=2
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=6a07a1a08f8b0db50ed87599fca712937004a53ef5950a1d17a1bc3d463a2979
case "$XBPS_TARGET_MACHINE" in
aarch64-musl) broken="https://github.com/nix-rust/nix/issues/951" ;;
i686*) broken="https://github.com/rust-lang/rust/issues/60184" ;;
esac
pre_build() {
cargo update --package openssl-sys --precise 0.9.46
cargo update --package openssl --precise 0.10.22
}
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
}
}