zola: update to 0.17.0

This commit is contained in:
Marcin Puc 2023-02-16 22:39:37 +01:00 committed by classabbyamp
parent 3b9ab801d1
commit 8bddaddb36

View File

@ -1,35 +1,36 @@
# Template file for 'zola' # Template file for 'zola'
pkgname=zola pkgname=zola
version=0.16.1 version=0.17.0
revision=2 revision=1
build_style=cargo build_style=cargo
build_helper=qemu
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="libsass-devel oniguruma-devel" makedepends="oniguruma-devel"
short_desc="Fast opinionated static site generator written in rust" short_desc="Fast opinionated static site generator"
maintainer="Carson Page <pagem.carson@gmail.com>" maintainer="Carson Page <pagem.carson@gmail.com>"
license="MIT" license="MIT"
homepage="https://github.com/getzola/zola" homepage="https://github.com/getzola/zola"
changelog="https://raw.githubusercontent.com/getzola/zola/master/CHANGELOG.md" changelog="https://raw.githubusercontent.com/getzola/zola/master/CHANGELOG.md"
distfiles="https://github.com/getzola/zola/archive/v${version}.tar.gz" distfiles="https://github.com/getzola/zola/archive/refs/tags/v${version}.tar.gz"
checksum=c153fd0cc1435930a4871165e6ad4865e3528465f3f41d0671a9837121688ac7 checksum=a7254554e61f2c737bc3981a6278e0fbac5dc685e5d90c014fc60eced99bf55c
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*|arm*|aarch64*) ;; x86_64*|i686*|arm*|aarch64*) ;;
*) broken="ftbfs in ring" ;; *) broken="ftbfs in ring" ;;
esac esac
pre_build() { export PKG_CONFIG_ALL_DYNAMIC=1
export PKG_CONFIG_ALL_DYNAMIC=1 export RUSTONIG_SYSTEM_LIBONIG=1
export RUSTONIG_SYSTEM_LIBONIG=1
}
post_install() { 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 vlicense LICENSE
ln -s zola ${DESTDIR}/usr/bin/gutenberg ln -s zola ${DESTDIR}/usr/bin/gutenberg
vcompletion completions/_zola zsh
vcompletion completions/zola.bash bash
vcompletion completions/zola.fish fish
} }
gutenberg_package() { gutenberg_package() {