summaryrefslogtreecommitdiff
path: root/extra/gpart/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gpart/PKGBUILD')
-rw-r--r--extra/gpart/PKGBUILD37
1 files changed, 8 insertions, 29 deletions
diff --git a/extra/gpart/PKGBUILD b/extra/gpart/PKGBUILD
index 3229f4205..76ee92b5f 100644
--- a/extra/gpart/PKGBUILD
+++ b/extra/gpart/PKGBUILD
@@ -1,49 +1,28 @@
-# $Id: PKGBUILD 143745 2011-11-28 20:14:39Z giovanni $
+# $Id: PKGBUILD 201253 2013-12-06 19:56:50Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: dale <dale@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=gpart
-pkgver=0.1h
-pkgrel=5.1
+pkgver=0.2.1
+pkgrel=1
pkgdesc="Partition table rescue/guessing tool"
arch=('i686' 'x86_64' 'mips64el')
-url="http://www.stud.uni-hannover.de/user/76201/gpart/"
+url="https://github.com/baruch/gpart"
license=('GPL')
depends=('glibc')
-source=("http://www.sfr-fresh.com/linux/misc/${pkgname}-${pkgver}.tar.gz"
- 'gpart-0.1h-errno.patch'
- 'gpart-0.1h-vfat.patch'
- 'gpart-0.1h-ntfs.patch'
- 'gpart-0.1h-reiserfs-3.6.patch'
- 'gpart-0.1h-l64seek.patch'
- 'gpart-0.1h-openmode.patch')
-md5sums=('ee3a2d2dde70bcf404eb354b3d1ee6d4'
- '81eee5d9985df9bf9c23624e46cf945f'
- 'ae6d86b0268618d34e618824dcd82754'
- '8161c02116ee4575906587eb09e35bde'
- '5da425c355740cbf06286755c902b996'
- '9cd7f91c321a83cc1aa202744d1c7cd2'
- 'c982a01385e99b86b32de536c1fbecfb')
+source=("https://github.com/baruch/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+md5sums=('465870b72b647a3aa22b335ba527e869')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- patch -Np1 -i ${srcdir}/gpart-0.1h-errno.patch
- patch -Np1 -i ${srcdir}/gpart-0.1h-vfat.patch
- patch -Np1 -i ${srcdir}/gpart-0.1h-ntfs.patch
- patch -Np2 -i ${srcdir}/gpart-0.1h-reiserfs-3.6.patch
- patch -Np1 -i ${srcdir}/gpart-0.1h-l64seek.patch
- patch -Np1 -i ${srcdir}/gpart-0.1h-openmode.patch
-
- sed -i -e "/^CFLAGS/s: -O2 : ${CFLAGS} :" make.defs
- sed -i -e "/^LDFLAGS/s:=:=${LDFLAGS} :" make.defs
-
+ ./configure --prefix=/usr
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
- make prefix=${pkgdir}/usr mandir=${pkgdir}/usr/share/man install
+ make prefix=${pkgdir}/usr install
}