# vim: set syn=sh: # Packager: Phill Watkins pkgname=gpart pkgver=0.1h pkgrel=1pw #arch=noarch source=\ ( "http://ftp.de.debian.org/debian/pool/main/g/gpart/gpart_$pkgver.orig.tar.gz" "http://ftp.de.debian.org/debian/pool/main/g/gpart/gpart_$pkgver-11.diff.gz" ) sourcetemplate=http://people.salixos.org/pwatk/packages/13.2/ap/$pkgname docs=("changelog" "copyright" "Changes" "COPYING" "README") url= slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "gpart (Guess PC-type hard disk partitions)" "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," "incorrect or deleted. The guessed table can be written to a file or" "device. Supported (guessable) filesystem or partition types:" "DOS/Windows FAT, Linux ext2 and swap, OS/2 HPFS, Windows NTFS, FreeBSD" "and Solaris/x86 disklabels, Minix FS, QNX 4 FS, Reiser FS, LVM" "physical volumes, BeOS FS, SGI XFS." ) build() { set -e cd $startdir/src/$pkgname-$pkgver patch -p1 --verbose < $startdir/src/gpart_$pkgver-11.diff for patch in $(cat debian/patches/series) ;do patch -p1 --verbose < debian/patches/$patch done sed "/^CFLAGS/s|-O. |$CFLAGS |" -i make.defs make -j $numjobs install -Dm 0755 src/gpart $startdir/pkg/usr/sbin/gpart install -Dm 0644 man/gpart.8 $startdir/pkg/usr/man/man8/gpart.8 set +e }