db-move: moved xdg-desktop-portal-gnome from [testing] to [extra] (x86_64)
[arch-packages.git] / gptfdisk / repos / extra-x86_64 / PKGBUILD
blobd317f0da235f3dac211f016e43348b0caf1ffa72
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=2
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 options=('debug')
17 source=(https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
18         popt-1.19.patch
19         popt-1.19-follow-up.patch
20         util-linux-2.38.patch)
21 sha256sums=('dafead2693faeb8e8b97832b23407f6ed5b3219bc1784f482dd855774e2d50c2'
22             'ac8ee9b46a089855535c483a93fd51badecdd9028b32c7cc561c5863f52f79ca'
23             '644dc3e2c5812c12bdfd3bb174d220cd3af8903fb1baafe8181bf9dfa303b78c'
24             'a79206e1e2c57ba74cdeed0f47eeb79919b99159d95c4b42b54e709a29b1af65')
26 prepare() {
27   cd "$srcdir/$pkgname-$pkgver"
28   patch -Np1 -i ../popt-1.19.patch
29   patch -Np1 -i ../util-linux-2.38.patch
31   # https://sourceforge.net/p/gptfdisk/code/merge-requests/28/
32   patch -Np1 -i ../popt-1.19-follow-up.patch
34   # https://sourceforge.net/p/gptfdisk/discussion/939590/thread/bc29ca06f8/
35   sed -i '/^#include /s:ncursesw/::' gptcurses.cc
38 build() {
39   cd "$srcdir/$pkgname-$pkgver"
40   make
43 check() {
44   cd "$srcdir/$pkgname-$pkgver"
45   make test
48 package () {
49   cd "$srcdir/$pkgname-$pkgver"
51   install -d "$pkgdir"/usr/{bin,share/{doc/gdisk,man/man8}}
52   install -t "$pkgdir/usr/bin" {,c,s}gdisk fixparts
53   install -m644 -t "$pkgdir/usr/share/man/man8" {{,c,s}gdisk,fixparts}.8
54   install -m644 -t "$pkgdir/usr/share/doc/gdisk" README NEWS