aboutsummaryrefslogtreecommitdiffstats
path: root/main/gptfdisk/APKBUILD
blob: 4073b8f272c9498ee91b636df7d1a6461fdc6839 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gptfdisk
pkgver=1.0.1
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 sgdisk"
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/gptfdisk-$pkgver
build() {
	cd "$_builddir"
	make CXX="${CXX:-g++}" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}

package () {
	cd "$_builddir"

	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
	done
}

sgdisk() {
	pkgdesc="Command-line GUID partition table (GPT) manipulator"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/sgdisk "$subpkgdir"/usr/bin/
}

md5sums="d7f3d306b083123bcc6f5941efade586  gptfdisk-1.0.1.tar.gz"
sha256sums="864c8aee2efdda50346804d7e6230407d5f42a8ae754df70404dd8b2fdfaeac7  gptfdisk-1.0.1.tar.gz"
sha512sums="6aa2ed6213183ea38ce7dd6e7f4f23b88cc56bed5a4d078f563b9e0a3c276eacf869e28a27ccb4e473753f7bced7ecb5de4535626f9ed22b7a59a39906d0419c  gptfdisk-1.0.1.tar.gz"