aboutsummaryrefslogtreecommitdiffstats
path: root/community/zola/APKBUILD
blob: fb26afbff0055770a5c8a15a7178d9c5e372c0a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=zola
pkgver=0.13.0
pkgrel=0
pkgdesc="Opionated static site generator"
url="https://github.com/getzola/zola"
# (! denote spurious SIGSEGVs, depends on upstream LLVM x Rust)
arch="x86_64 armv7 armhf aarch64 !x86" # Limited by cargo
license="MIT"
makedepends="cargo openssl-dev libsass-dev oniguruma-dev"
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"

export RUSTONIG_SYSTEM_LIBONIG=1 # Link against system liboniguruma

build() {
	cargo build --release --verbose --locked
}

check() {
	cargo test all --release --verbose --locked
}

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/completions/zola.fish
}


sha512sums="395e7a285d6949623e7358782184e7a9e1fa772df2bcbf97324dd5348c3cb0f1b7c5bfdd5b508906684db0f095f5325e36f4d5ab4188d35354c44c858f3a5c94  zola-0.13.0.tar.gz"