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 util-linux-2.38.patch)
18 sha256sums=('dafead2693faeb8e8b97832b23407f6ed5b3219bc1784f482dd855774e2d50c2'
19 'c014a1054c597fb9afb06e7cd4c91a038d887e66dd36aba26a68494ea0f41a43')
22 cd "$srcdir/$pkgname-$pkgver"
23 patch -Np1 -i ../util-linux-2.38.patch
25 # https://sourceforge.net/p/gptfdisk/discussion/939590/thread/bc29ca06f8/
26 sed -i '/^#include /s:ncursesw/::' gptcurses.cc
30 cd "$srcdir/$pkgname-$pkgver"
35 cd "$srcdir/$pkgname-$pkgver"
40 cd "$srcdir/$pkgname-$pkgver"
42 install -d "$pkgdir"/usr/{bin,share/{doc/gdisk,man/man8}}
43 install -t "$pkgdir/usr/bin" {,c,s}gdisk fixparts
44 install -m644 -t "$pkgdir/usr/share/man/man8" {{,c,s}gdisk,fixparts}.8
45 install -m644 -t "$pkgdir/usr/share/doc/gdisk" README NEWS