39 lines
972 B
Bash
39 lines
972 B
Bash
# Template file for 'zola'
|
|
pkgname=zola
|
|
version=0.15.3
|
|
revision=1
|
|
build_style=cargo
|
|
hostmakedepends="pkg-config"
|
|
makedepends="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://raw.githubusercontent.com/getzola/zola/master/CHANGELOG.md"
|
|
distfiles="https://github.com/getzola/zola/archive/v${version}.tar.gz"
|
|
checksum=89a590549249e60a01f1a1f66ee23fedc711afd4e9a669ee1328e5c99ea958c8
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*|i686*|arm*|aarch64*) ;;
|
|
*) broken="ftbfs in ring" ;;
|
|
esac
|
|
|
|
pre_build() {
|
|
export PKG_CONFIG_ALL_DYNAMIC=1
|
|
export RUSTONIG_SYSTEM_LIBONIG=1
|
|
}
|
|
|
|
post_install() {
|
|
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
|
|
}
|
|
}
|