Mail archive
alpine-aports

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

From: Sören Tempel <soeren+git_at_soeren-tempel.net>
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
_at_@ -1,12 +1,13 @@
 # Maintainer: Natanael Copa <ncopa_at_alpinelinux.org>
 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
_at_@ -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:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Aug 05 2015 - 22:28:40 GMT