diff options
-rw-r--r-- | testing/zola/APKBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/testing/zola/APKBUILD b/testing/zola/APKBUILD new file mode 100644 index 0000000000..5f190dad23 --- /dev/null +++ b/testing/zola/APKBUILD @@ -0,0 +1,58 @@ +# Maintainer: Leo <thinkabit.ukim@gmail.com> +pkgname=zola +pkgver=0.6.0 +pkgrel=0 +pkgdesc="Opionated static site generator" +url="https://github.com/getzola/zola" +arch="x86_64" # Limited by cargo pkg +license="MIT" +makedepends="cargo openssl-dev libsass-dev" +subpackages=" + $pkgname-zsh-completion:zshcomp:noarch + $pkgname-fish-completion:fishcomp:noarch + $pkgname-bash-completion:bashcomp:noarch" +source="$pkgname-$pkgver.tar.gz::https://github.com/getzola/zola/archive/v${pkgver}.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cargo build --release --verbose +} + +check() { + cargo test all --release --verbose +} + +package() { + cargo install --path . --root="$pkgdir"/usr + rm "$pkgdir"/usr/.crates.toml +} + +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + install -Dm644 "$builddir"/completions/zola.bash \ + "$subpkgdir"/usr/share/bash-completion/completions/bash.fish +} + +zshcomp() { + depends="" + pkgdesc="Zsh compltions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + + install -Dm644 "$builddir"/completions/_zola \ + "$subpkgdir"/usr/share/zsh/site-functions/_zola +} + +fishcomp() { + depends="" + pkgdesc="Fish completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel fish" + + install -Dm644 "$builddir"/completions/zola.fish \ + "$subpkgdir"/usr/share/fish/completions/zola.fish +} + + +sha512sums="18f910e36b32bd974d8715201f17c9058a27d86938db081856141b39aa9370ff14340064f40e9116e168e3fa8de2bfe0d50c2d9418cf43711a584addd39f158b zola-0.6.0.tar.gz" |