aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-04-22 12:04:59 -0300
committerKevin Daudt <kdaudt@alpinelinux.org>2019-04-23 18:39:11 +0000
commit436a1ddf33e3a7396bae61832c5f246711474b3b (patch)
tree52981915df09f0a7ddf1c014a85c4429a8264269 /testing
parent07ecf28d13e87f39618e000467e3a428110f5da3 (diff)
downloadaports-436a1ddf33e3a7396bae61832c5f246711474b3b.tar.bz2
aports-436a1ddf33e3a7396bae61832c5f246711474b3b.tar.xz
testing/zola: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/zola/APKBUILD58
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"