aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zig
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2020-04-12 00:19:52 +0200
committerMilan P. Stanić <mps@arvanta.net>2020-04-14 22:17:00 +0200
commit6838e819bbef4d229089931eb422847a0eb01c03 (patch)
treeb8ca6dace990a486f0677029f13a107a8d53b424 /testing/zig
parent1cf563f092d741ca2c9083d5dd09dc36b2629401 (diff)
downloadaports-6838e819bbef4d229089931eb422847a0eb01c03.tar.bz2
aports-6838e819bbef4d229089931eb422847a0eb01c03.tar.xz
testing/zig: add -doc subpackage
Currently only ships the langsec.html file. Further documentation will be generated in future releases, see: https://github.com/ziglang/zig/issues/21
Diffstat (limited to 'testing/zig')
-rw-r--r--testing/zig/APKBUILD8
1 files changed, 7 insertions, 1 deletions
diff --git a/testing/zig/APKBUILD b/testing/zig/APKBUILD
index 77a6605ea8..ff2e094336 100644
--- a/testing/zig/APKBUILD
+++ b/testing/zig/APKBUILD
@@ -1,14 +1,16 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=zig
pkgver=0.6.0
-pkgrel=0
+pkgrel=1
pkgdesc="general-purpose programming language designed for robustness, optimality, and maintainability"
url="https://ziglang.org/"
arch="x86_64 aarch64"
license="MIT"
provides="zig-dev=$pkgver-r$pkgrel"
options="!check" # works, but fail at the end, need to be fixed
+subpackages="$pkgname-doc"
makedepends="cmake clang-dev clang-libs llvm10-libs llvm-dev lld-dev libstdc++
zlib-static libxml2-dev llvm10-static clang-static lld-static"
source="$pkgname-$pkgver.tar.gz::https://github.com/ziglang/zig/archive/$pkgver.tar.gz"
@@ -26,6 +28,8 @@ build() {
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS} .
make
+
+ ./zig build docs
}
check() {
@@ -45,6 +49,8 @@ package() {
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS} .
make DESTDIR="$pkgdir" install
+
+ install -Dm644 zig-cache/langref.html "$pkgdir"/usr/share/doc/$pkgname/langref.html
}
sha512sums="062f3437a080c1d823558c834dd143222e3f0537cc4256c4fa687ed94078a4312be60e402b0effa916ce8305a3482e1736a93c3ec4275fc5a526a0d78a3b1a47 zig-0.6.0.tar.gz"