PKGBUILDs/community/par2cmdline/PKGBUILD
2010-09-14 04:49:14 +00:00

60 lines
1.8 KiB
Bash

# Maintainer: wide-eye <eyeswide@gmail.com>
# Contributor: BlackEagle < ike DOT devolder AT herecura DOT be >
# No Plugbox changes, but sabnzbd depends on this package.
pkgname=par2cmdline
pkgver=0.4
pkgrel=14
pkgdesc="Providing a tool to apply the data-recovery capability concepts of RAID-like systems to the posting & recovery of multi-part archives on Usenet."
url="http://sourceforge.net/projects/parchive/"
license="GPL"
depends=('gcc-libs')
makedepends=()
arch=('i686' 'x86_64')
source=(
"http://downloads.sourceforge.net/sourceforge/parchive/${pkgname}-${pkgver}.tar.gz"
'par2cmdline-0.4-autoconf.patch'
'par2cmdline-0.4-wildcard-fix.patch'
'par2cmdline-0.4-offset.patch'
'par2cmdline-0.4-letype.patch'
'par2cmdline-0.4-gcc4.patch'
'par2cmdline-0.4-cosmetic.patch'
'par2cmdline-0.4-hardlinks.patch'
)
md5sums=(
'1551b63e57e3c232254dc62073b723a9'
'8a0fad41e3c3165e3c788d2693797557'
'c823d25f8862531e6e435ce0c76f8384'
'cd54801b5107f03982c2b01ead21f02a'
'1f7adb9308d4e972a5630eb56a42f8d5'
'd52515669d3bc43f19c545fd6405dacc'
'986d44b0cdba449459f9cfd93322144f'
'8683d237bc11e9d5581d14b4697d1f8b'
)
build() {
cd ${pkgname}-${pkgver}
msg "patch autoconf failure"
patch -N -i ../par2cmdline-0.4-autoconf.patch || return 1
msg "patch wildcard-fix"
patch -N -i ../par2cmdline-0.4-wildcard-fix.patch || return 1
msg "patch offset"
patch -N -i ../par2cmdline-0.4-offset.patch || return 1
msg "patch letype"
patch -N -i ../par2cmdline-0.4-letype.patch || return 1
msg "patch gcc4"
patch -N -i ../par2cmdline-0.4-gcc4.patch || return 1
msg "patch cosmetic"
patch -N -i ../par2cmdline-0.4-cosmetic.patch || return 1
msg "patch hardlinks"
patch -N -i ../par2cmdline-0.4-hardlinks.patch || return 1
msg "Configure"
./configure --prefix=/usr
make || return 1
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR=$startdir/pkg install
}