aboutsummaryrefslogtreecommitdiffstats
path: root/main/gptfdisk/APKBUILD
blob: 63947e132f043be1f9a8279b95ddc9d93e77e68d (plain)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gptfdisk
pkgver=1.0.4
pkgrel=0
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/"
options="!check"  # No test suite.
license="GPL-2.0+"
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"

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/
		install $i.8 "$pkgdir"/usr/share/man/man8/
	done
}

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

sha512sums="2df6db6974c06a6677a155d32566b8b46dad0df7781131e9018072db9acce5e41f6c4e7024b0e5f236dd43350a63572be34fb4b6fdb580cd9b946619a7a683bf  gptfdisk-1.0.4.tar.gz"