summaryrefslogtreecommitdiff
path: root/libraries/libpar2
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libpar2')
-rw-r--r--libraries/libpar2/README5
-rw-r--r--libraries/libpar2/libpar2.SlackBuild6
-rw-r--r--libraries/libpar2/libpar2.info2
-rw-r--r--libraries/libpar2/slack-desc3
4 files changed, 9 insertions, 7 deletions
diff --git a/libraries/libpar2/README b/libraries/libpar2/README
index 801e46ade3..61e9b09564 100644
--- a/libraries/libpar2/README
+++ b/libraries/libpar2/README
@@ -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.
diff --git a/libraries/libpar2/libpar2.SlackBuild b/libraries/libpar2/libpar2.SlackBuild
index e3003ed8c0..af73192bfc 100644
--- a/libraries/libpar2/libpar2.SlackBuild
+++ b/libraries/libpar2/libpar2.SlackBuild
@@ -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}
diff --git a/libraries/libpar2/libpar2.info b/libraries/libpar2/libpar2.info
index 5148ec8e32..e1bc4c25b2 100644
--- a/libraries/libpar2/libpar2.info
+++ b/libraries/libpar2/libpar2.info
@@ -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"
diff --git a/libraries/libpar2/slack-desc b/libraries/libpar2/slack-desc
index c59945950d..442b5f6935 100644
--- a/libraries/libpar2/slack-desc
+++ b/libraries/libpar2/slack-desc
@@ -16,5 +16,4 @@ libpar2:
libpar2: Homepage: http://parchive.sourceforge.net/
libpar2:
libpar2:
-libpar2:
-libpar2:
+libpar2: