libraries/libpar2: Updated for version 0.2

This commit is contained in:
Daniel 2010-05-13 00:31:37 +02:00 committed by Robby Workman
parent 77bf22de96
commit 13cb632d7e
4 changed files with 9 additions and 7 deletions

View file

@ -1,5 +1,3 @@
libpar2 (file corruption detection library for C++)
libpar2 allows for the generation, modification, verification of PAR v1.0
and PAR v2.0(PAR2) sets used for recovery when data is lost or corrupted. When
used with collections of files, some missing files can be regenerated.
@ -7,5 +5,4 @@ used with collections of files, some missing files can be regenerated.
The code was initially extracted from the program par2cmdline (also available
at SlackBuilds) to allow developers to use it.
libpar2 requires the libsigc++ library which is also available from
SlackBuilds.org.
Requires libsigc++ available at SlackBuilds.org.

View file

@ -32,10 +32,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
@ -53,6 +56,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@ -73,4 +77,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -2,7 +2,9 @@ PRGNAM="libpar2"
VERSION="0.2"
HOMEPAGE="http://parchive.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/parchive/libpar2-0.2.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="94c6df4e38efe08056ecde2a04e0be91"
MD5SUM_x86_64=""
MAINTAINER="Daniel"
EMAIL="whitehate{at}gmail{dot}com"
APPROVED="rworkman"

View file

@ -16,5 +16,4 @@ libpar2:
libpar2: Homepage: http://parchive.sourceforge.net/
libpar2:
libpar2:
libpar2:
libpar2:
libpar2: