40 lines
1 KiB
Bash
40 lines
1 KiB
Bash
# Template file for 'zola'
|
|
pkgname=zola
|
|
version=0.10.1
|
|
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=cf5992e935d2f236985b57f357bb6e6738e83b13b0ae50278da66382a0af106c
|
|
|
|
case $XBPS_TARGET_MACHINE in
|
|
ppc*) broken="segfaults" ;;
|
|
*-musl) broken="triggers segfault in rustc" ;;
|
|
esac
|
|
|
|
pre_build() {
|
|
export PKG_CONFIG_ALL_DYNAMIC=1
|
|
export RUSTONIG_SYSTEM_LIBONIG=1
|
|
cargo update --package openssl-sys
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|