archrelease: copy trunk to extra-x86_64
[arch-packages.git] / gptfdisk / trunk / PKGBUILD
blob1b69bebfbec6a0eb52798b46049f0e9d47b0a189
1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
2 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
3 # Contributor: Hokum <hokum_at_mail_dot_ru>
5 pkgname=gptfdisk
6 pkgver=1.0.9
7 pkgrel=1
8 pkgdesc="A text-mode partitioning tool that works on GUID Partition Table (GPT) disks"
9 arch=('x86_64')
10 url="https://www.rodsbooks.com/gdisk/"
11 license=('GPL2')
12 depends=('gcc-libs' 'popt' 'libuuid.so' 'libncursesw.so')
13 provides=("gdisk=$pkgver")
14 conflicts=('gdisk')
15 replaces=('gdisk')
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')
21 prepare() {
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
29 build() {
30   cd "$srcdir/$pkgname-$pkgver"
31   make
34 check() {
35   cd "$srcdir/$pkgname-$pkgver"
36   make test
39 package () {
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