gpart: fix crash on non-disk device

This commit is contained in:
Nathan Owens 2019-01-03 00:11:20 -06:00 committed by maxice8
parent eddd2a97d1
commit f127e74fb5

View file

@ -1,15 +1,21 @@
# Template file for 'gpart'
pkgname=gpart
version=0.3
revision=2
revision=3
build_style=gnu-configure
hostmakedepends="automake"
short_desc="Partition table rescue/guessing tool"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/baruch/gpart"
distfiles="https://github.com/baruch/gpart/archive/${version}.tar.gz"
checksum=ec56d12ec9ffdb9877c12692ea6e51620b1ae44473d3d253b27fc31ed9ebb4dd
distfiles="https://github.com/baruch/gpart/archive/${version}.tar.gz
https://github.com/ndowens/voidpatches/archive/gpart-patches.tar.gz"
checksum="ec56d12ec9ffdb9877c12692ea6e51620b1ae44473d3d253b27fc31ed9ebb4dd
ac68a5275d878623add392fc6a68913735e6cfbed5a6c49fcbe48105f88b97eb"
post_extract() {
patch -p0 < ../voidpatches-gpart-patches/0004-Real-fix-for-crash.patch
}
pre_configure() {
autoreconf -fi