Subject: [alpine-aports] [PATCH] main/gptfdisk: add gptfdisk-doc subpackage

From: Sören Tempel <[email-masked]>
Date: Wed, 5 Aug 2015 22:28:40 +0200

---
 main/gptfdisk/APKBUILD | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/main/gptfdisk/APKBUILD b/main/gptfdisk/APKBUILD
index f992140..ad29933 100644
--- a/main/gptfdisk/APKBUILD
+++ b/main/gptfdisk/APKBUILD
@@ -1,12 +1,13 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=gptfdisk
 pkgver=1.0.0
-pkgrel=0
+pkgrel=1
 pkgdesc="A text-mode partitioning tool that works on Globally Unique Identifier (GUID) Partition Table (GPT) disks"
 arch="all"
 url="http://www.rodsbooks.com/gdisk/"
 license='GPL2'
 makedepends="ncurses-dev e2fsprogs-dev popt-dev linux-headers"
+subpackages="$pkgname-doc"
 source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz"
 
 _builddir="$srcdir"/gptfdisk-$pkgver
@@ -17,10 +18,8 @@ build() {
 
 package () {
 	cd "$_builddir"
-	install -d "$pkgdir"/usr/bin \
-		"$pkgdir"/usr/share/man/man8 \
-		|| return 1
 
+	mkdir -p "$pkgdir"/usr/bin "$pkgdir"/usr/share/man/man8
 	for i in gdisk cgdisk sgdisk fixparts; do
 		install $i "$pkgdir"/usr/bin/ || return 1
 		install $i.8 "$pkgdir"/usr/share/man/man8/ || return 1
-- 
2.5.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---