1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
2 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
3 # Contributor: Hokum <hokum_at_mail_dot_ru>
8 pkgdesc="A text-mode partitioning tool that works on GUID Partition Table (GPT) disks"
10 url="https://www.rodsbooks.com/gdisk/"
12 depends=('gcc-libs' 'popt' 'libuuid.so' 'libncursesw.so')
13 provides=("gdisk=$pkgver")
16 source=(https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
17 sha256sums=('95d19856f004dabc4b8c342b2612e8d0a9eebdd52004297188369f152e9dc6df')
20 cd "$srcdir/$pkgname-$pkgver"
22 # https://sourceforge.net/p/gptfdisk/discussion/939590/thread/bc29ca06f8/
23 sed -i '/^#include /s:ncursesw/::' gptcurses.cc
27 cd "$srcdir/$pkgname-$pkgver"
32 cd "$srcdir/$pkgname-$pkgver"
37 cd "$srcdir/$pkgname-$pkgver"
39 install -d "$pkgdir"/usr/{bin,share/{doc/gdisk,man/man8}}
40 install -t "$pkgdir/usr/bin" {,c,s}gdisk fixparts
41 install -m644 -t "$pkgdir/usr/share/man/man8" {{,c,s}gdisk,fixparts}.8
42 install -m644 -t "$pkgdir/usr/share/doc/gdisk" README NEWS