PKGBUILDs/extra/gpart/PKGBUILD

31 lines
1.3 KiB
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# $Id: PKGBUILD 34203 2009-04-08 04:59:59Z eric $
# Maintainer: dale <dale@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=gpart
pkgver=0.1h
pkgrel=3
pkgdesc="Gpart is a tool which tries to guess the primary partition table of a PC-type hard disk in case the primary partition table in sector 0 is damaged"
arch=('i686' 'x86_64')
url="http://www.stud.uni-hannover.de/user/76201/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-PIC.patch gpart-0.1h-no-_syscall.patch)
md5sums=('ee3a2d2dde70bcf404eb354b3d1ee6d4' '81eee5d9985df9bf9c23624e46cf945f'\
'ae6d86b0268618d34e618824dcd82754' '8161c02116ee4575906587eb09e35bde'\
'd3f5b05d12816375f5dcd9a251f72f61' 'f811c6e132b2c0cd2d9cb0fd4933063a')
build() {
cd $srcdir/$pkgname-$pkgver
patch -p1 < ../gpart-0.1h-errno.patch || return 1
patch -p1 < ../gpart-0.1h-vfat.patch || return 1
patch -p1 < ../gpart-0.1h-ntfs.patch || return 1
patch -p1 < ../gpart-0.1h-PIC.patch || return 1
patch -p0 < ../gpart-0.1h-no-_syscall.patch || return 1
make || return 1
make prefix=$pkgdir/usr mandir=$pkgdir/usr/share/man install || return 1
}