jobextra/gptfdisk/PKGBUILD

67 lines
2.1 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=gptfdisk
pkgver=1.0.9
pkgrel=02
pkgdesc="A text-mode partitioning tool that works on GUID Partition Table (GPT) disks"
arch=('x86_64')
url="https://www.rodsbooks.com/gdisk/"
depends=('gcc-libs' 'popt' 'libuuid.so' 'libncursesw.so')
provides=("gdisk=$pkgver")
conflicts=('gdisk')
replaces=('gdisk')
#options=('debug') ###### uncomment for debug pkg
source=(https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
popt-1.19.patch
popt-1.19-follow-up.patch
util-linux-2.38.patch)
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -Np1 -i ../popt-1.19.patch
patch -Np1 -i ../util-linux-2.38.patch
# https://sourceforge.net/p/gptfdisk/code/merge-requests/28/
patch -Np1 -i ../popt-1.19-follow-up.patch
# https://sourceforge.net/p/gptfdisk/discussion/939590/thread/bc29ca06f8/
sed -i '/^#include /s:ncursesw/::' gptcurses.cc
}
build() {
cd "$srcdir/$pkgname-$pkgver"
make
}
check() {
cd "$srcdir/$pkgname-$pkgver"
make test
}
package () {
cd "$srcdir/$pkgname-$pkgver"
install -d "$pkgdir"/usr/{bin,share/{doc/gdisk,man/man8}}
install -t "$pkgdir/usr/bin" {,c,s}gdisk fixparts
install -m644 -t "$pkgdir/usr/share/man/man8" {{,c,s}gdisk,fixparts}.8
install -m644 -t "$pkgdir/usr/share/doc/gdisk" README NEWS
}
#---- license gpg-key sha256sums ----
license=('GPL2')
sha256sums=(dafead2693faeb8e8b97832b23407f6ed5b3219bc1784f482dd855774e2d50c2 # gptfdisk-1.0.9.tar.gz
ac8ee9b46a089855535c483a93fd51badecdd9028b32c7cc561c5863f52f79ca # popt-1.19.patch
644dc3e2c5812c12bdfd3bb174d220cd3af8903fb1baafe8181bf9dfa303b78c # popt-1.19-follow-up.patch
a79206e1e2c57ba74cdeed0f47eeb79919b99159d95c4b42b54e709a29b1af65) # util-linux-2.38.patch
# c014a1054c597fb9afb06e7cd4c91a038d887e66dd36aba26a68494ea0f41a43) # util-linux-2.38.patch