Mail archive
alpine-aports

[alpine-aports] [PATCH 5/9] main/s6-networking: add doc subpackage

From: Laurent Bercot <ska-devel_at_skarnet.org>
Date: Fri, 4 Nov 2016 19:16:37 +0100

---
 main/s6-networking/APKBUILD | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/main/s6-networking/APKBUILD b/main/s6-networking/APKBUILD
index 510a8b3..2c34eb9 100644
--- a/main/s6-networking/APKBUILD
+++ b/main/s6-networking/APKBUILD
_at_@ -2,16 +2,16 @@
 # Contributor: John Regan <john_at_jrjrtech.com>
 pkgname=s6-networking
 pkgver=2.2.0.0
-pkgrel=0
+pkgrel=1
 pkgdesc="skarnet.org's UCSPI Unix and TCP tools, access control tools, and network time management utilities."
 url="http://skarnet.org/software/$pkgname/"
 arch="all"
 license="ISC"
 depends="skalibs execline s6 s6-dns"
 depends_dev="skalibs-dev execline-dev s6-dev s6-dns-dev"
-makedepends="$depends_dev"
+makedepends="skalibs-dev execline-dev s6-dev s6-dns-dev"
 install=""
-subpackages="$pkgname-dev"
+subpackages="$pkgname-dev $pkgname-doc"
 source="http://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"
 
 _builddir="$srcdir/$pkgname-$pkgver"
_at_@ -43,6 +43,12 @@ package() {
 	make DESTDIR="$pkgdir" install || return 1
 }
 
+doc() {
+	default_doc
+	mkdir -p "$subpkgdir/usr/share/doc"
+	cp -a "$_builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
+}
+
 md5sums="5f45aa8839bd0486a2a55e41fa3cb1a3  s6-networking-2.2.0.0.tar.gz"
 sha256sums="457d956bb6463ee029af4ce74aa68a88cf238ecfe2123eef50ad5d11502a6e3d  s6-networking-2.2.0.0.tar.gz"
 sha512sums="34979d486404d43cdfdc5e7a496898c04449c00f735a1d7b052b6beb4b3cc5a005d5aea94b99a28d9e0feb02fd150994603883c5ba8c508598b3ffb6bd655efb  s6-networking-2.2.0.0.tar.gz"
-- 
2.8.3
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Nov 04 2016 - 19:16:37 GMT