# Contributor: Leo # Contributor: Will Sinatra # Maintainer: Erwan Rouchet pkgname=zola pkgver=0.17.2 pkgrel=2 pkgdesc="Opionated static site generator" url="https://github.com/getzola/zola" # ppc64le, s390x, riscv64: rust-ring # armhf: build hangs arch="all !armhf !ppc64le !s390x !riscv64" license="MIT" makedepends=" cargo cargo-auditable libsass-dev oniguruma-dev openssl-dev>3 " subpackages=" $pkgname-zsh-completion $pkgname-fish-completion $pkgname-bash-completion " source="$pkgname-$pkgver.tar.gz::https://github.com/getzola/zola/archive/v$pkgver.tar.gz minimize-size.patch" options="net" # fetch dependencies export RUSTONIG_SYSTEM_LIBONIG=1 # Link against system liboniguruma prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --frozen --release mkdir -p completions target/release/zola completion bash > completions/zola.bash target/release/zola completion zsh > completions/_zola target/release/zola completion fish > completions/zola.fish } check() { cargo test all --frozen } package() { install -Dm0755 target/release/zola "$pkgdir"/usr/bin/zola install -Dm644 "$builddir"/completions/zola.bash \ "$pkgdir"/usr/share/bash-completion/completions/zola install -Dm644 "$builddir"/completions/_zola \ "$pkgdir"/usr/share/zsh/site-functions/_zola install -Dm644 "$builddir"/completions/zola.fish \ "$pkgdir"/usr/share/fish/vendor_completions.d/zola.fish } sha512sums=" 8d0afe05085e43caad3b85c508e288704d33c96760ee5fd217eef07623b7eda214d85178b118282131b824edf4d4869127c73206572778efde7ac8089ee93a33 zola-0.17.2.tar.gz 35ff6626a0c495fd908a3a7f4ec3b95293b4553f195d3cec3627aa279f26920cf2212fce04ff2834a1fe3eaa64e794cc804118c39a0fdfdd571cf62fbe3bbe2e minimize-size.patch "