gpart: fix crash on non-disk device
This commit is contained in:
parent
eddd2a97d1
commit
f127e74fb5
1 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue