39 lines
997 B
Bash
39 lines
997 B
Bash
# Template file for 'zola'
|
|
pkgname=zola
|
|
version=0.9.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=8d226ec764f2bc06de8e49e2e22ccf37811bc478bbcaa83c2c841b222ef4fc4e
|
|
|
|
case $XBPS_TARGET_MACHINE in
|
|
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
|
|
}
|
|
}
|