From 495f48a281a89efbcd839528b73f8a6578e36eb8 Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.eu>
Date: Mon, 3 Aug 2015 14:07:58 +0200
Subject: [PATCH] gpart: update to 0.2.2.

---
 srcpkgs/gpart/template | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gpart/template b/srcpkgs/gpart/template
index 6bbef562923..c10f1b7c021 100644
--- a/srcpkgs/gpart/template
+++ b/srcpkgs/gpart/template
@@ -1,11 +1,16 @@
 # Template file for 'gpart'
 pkgname=gpart
-version=0.2.1
+version=0.2.2
 revision=1
 build_style=gnu-configure
 short_desc="Partition table rescue/guessing tool"
 maintainer="Juan RP <xtraeme@voidlinux.eu>"
+hostmakedepends="automake"
 license="GPL-2"
 homepage="https://github.com/baruch/gpart"
-distfiles="https://github.com/baruch/gpart/releases/download/v${version}/${pkgname}-${version}.tar.gz"
-checksum=4efdaf4a557bf1b3fb3379bf684772dc1c0a05c9251eec53299b9f2362ea4e50
+distfiles="https://github.com/baruch/gpart/archive/v${version}.tar.gz"
+checksum=82b2f9fd86439cf1435da00abfde5bdf7ea4d8ee0355e45e9d7d93f109e5f0d4
+
+pre_configure() {
+	autoreconf -fi
+}