aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-10-23 14:31:28 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-10-23 14:00:17 +0000
commitb80c50b21349ae925eb7fdfc084f419b199a8ddb (patch)
tree59984cf2fb888725e3bf993c444f3ba8db8581c6
parent49263356c5dea531e7991a41aa2bc6df0e04b4f8 (diff)
downloadaports-b80c50b21349ae925eb7fdfc084f419b199a8ddb.tar.gz
aports-b80c50b21349ae925eb7fdfc084f419b199a8ddb.tar.bz2
aports-b80c50b21349ae925eb7fdfc084f419b199a8ddb.tar.xz
main/json-c: add -doc subpkg
-rw-r--r--main/json-c/APKBUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/main/json-c/APKBUILD b/main/json-c/APKBUILD
index 83c21cd4b8..9715236e46 100644
--- a/main/json-c/APKBUILD
+++ b/main/json-c/APKBUILD
@@ -1,13 +1,13 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=json-c
pkgver=0.15
-pkgrel=0
+pkgrel=1
pkgdesc="A JSON implementation in C"
url="https://github.com/json-c/json-c/wiki"
arch="all"
license="MIT"
-makedepends="cmake"
-subpackages="$pkgname-dev"
+makedepends="cmake doxygen"
+subpackages="$pkgname-dev $pkgname-doc"
source="https://s3.amazonaws.com/json-c_releases/releases/json-c-$pkgver.tar.gz"
# secfixes:
@@ -26,10 +26,13 @@ build() {
-DCMAKE_BUILD_TYPE=None \
$CMAKE_CROSSOPTS .
make -C build
+ make -C build doc
}
package() {
make -C build DESTDIR="$pkgdir" install
+ mkdir -p "$pkgdir"/usr/share/doc/$pkgname
+ mv doc/html "$pkgdir"/usr/share/doc/$pkgname
}
sha512sums="dc01298bcc78f0f31a34f5fcfe45c0feebfd88518e97fb4f96f1a652f71ccdd303415a4c7bf5b573bdcbcca80428281f0dfccefc6545ea3a7f18dbb819332f34 json-c-0.15.tar.gz"