archrelease: copy trunk to extra-x86_64
[arch-packages.git] / gptfdisk / trunk / PKGBUILD
blob079cdcf2cf58c59dcbf2e535e39b871986e9d909
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.8
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 sha256sums=('95d19856f004dabc4b8c342b2612e8d0a9eebdd52004297188369f152e9dc6df')
19 prepare() {
20   cd "$srcdir/$pkgname-$pkgver"
22   # https://sourceforge.net/p/gptfdisk/discussion/939590/thread/bc29ca06f8/
23   sed -i '/^#include /s:ncursesw/::' gptcurses.cc
26 build() {
27   cd "$srcdir/$pkgname-$pkgver"
28   make
31 check() {
32   cd "$srcdir/$pkgname-$pkgver"
33   make test
36 package () {
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