aboutsummaryrefslogtreecommitdiffstats
path: root/main/gptfdisk/APKBUILD
blob: 352c1962c4b0145c6af9869d860df60e77b48799 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gptfdisk
pkgver=1.0.1
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/"
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
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
}

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