Mail archive
alpine-aports

[alpine-aports] [PATCH 8/9] main/s6-linux-utils: add doc subpackage

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

---
 main/s6-linux-utils/APKBUILD | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/main/s6-linux-utils/APKBUILD b/main/s6-linux-utils/APKBUILD
index 315276a..14111c1 100644
--- a/main/s6-linux-utils/APKBUILD
+++ b/main/s6-linux-utils/APKBUILD
_at_@ -2,16 +2,15 @@
 # Contributor: Christian Kampka <christian_at_kampka.net>
 pkgname=s6-linux-utils
 pkgver=2.2.0.0
-pkgrel=0
+pkgrel=1
 pkgdesc="A set of tiny Linux-specific utilities optimized for simplicity and small size."
 url="http://skarnet.org/software/$pkgname/"
 arch="all"
 license="ISC"
 depends="skalibs"
-depends_dev="skalibs-dev"
-makedepends="$depends_dev linux-headers"
+makedepends="skalibs-dev linux-headers"
 install=""
-subpackages="$pkgname-dev"
+subpackages="$pkgname-doc"
 source="http://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"
 
 _builddir="$srcdir/$pkgname-$pkgver"
_at_@ -42,6 +41,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="70b09e0d1b498cf647eea491a1969033  s6-linux-utils-2.2.0.0.tar.gz"
 sha256sums="587745abfbf2cc631bb54dd2b3fd29f39b723e3c50e28165138a85c98fda35f9  s6-linux-utils-2.2.0.0.tar.gz"
 sha512sums="5d0fcd29f7a03146b5296d7164326f76af95a8632df4204021d9ae30b1f03590e7f25d410f07639cf741a455f9624f9410b2e7836ae6838916da50be1527ae7f  s6-linux-utils-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:40 GMT