43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'zola'
|
|
pkgname=zola
|
|
version=0.17.0
|
|
revision=1
|
|
build_style=cargo
|
|
build_helper=qemu
|
|
hostmakedepends="pkg-config"
|
|
makedepends="oniguruma-devel"
|
|
short_desc="Fast opinionated static site generator"
|
|
maintainer="Carson Page <pagem.carson@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/getzola/zola"
|
|
changelog="https://raw.githubusercontent.com/getzola/zola/master/CHANGELOG.md"
|
|
distfiles="https://github.com/getzola/zola/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=a7254554e61f2c737bc3981a6278e0fbac5dc685e5d90c014fc60eced99bf55c
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*|i686*|arm*|aarch64*) ;;
|
|
*) broken="ftbfs in ring" ;;
|
|
esac
|
|
|
|
export PKG_CONFIG_ALL_DYNAMIC=1
|
|
export RUSTONIG_SYSTEM_LIBONIG=1
|
|
|
|
post_install() {
|
|
for shell in bash fish zsh; do
|
|
vtargetrun ${DESTDIR}/usr/bin/zola completion ${shell} > zola.${shell}
|
|
vcompletion zola.${shell} ${shell}
|
|
done
|
|
|
|
vlicense LICENSE
|
|
|
|
ln -s zola ${DESTDIR}/usr/bin/gutenberg
|
|
}
|
|
|
|
gutenberg_package() {
|
|
depends="zola-${version}_${revision}"
|
|
short_desc="Transition package for Zola"
|
|
pkg_install() {
|
|
vmove usr/bin/gutenberg
|
|
}
|
|
}
|