libraries/ebook-tools: Updated for version 0.1.1

This commit is contained in:
Heinz Wiesinger 2010-05-13 00:29:11 +02:00 committed by Robby Workman
parent e9374706a1
commit 6d6b7280b5
3 changed files with 13 additions and 7 deletions

View file

@ -1,5 +1,2 @@
This package includes utilities for a better ebook-handling This package includes utilities for a better ebook-handling
ebook-tools: as well as libepub. ebook-tools: as well as libepub.
ebook-tools requires libzip, which is also available from
SlackBuilds.org.

View file

@ -2,7 +2,7 @@
# Slackware build script for ebook-tools # Slackware build script for ebook-tools
# Copyright 2008 Heinz Wiesinger <hmwiesinger@gmx.at> # Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
set -e set -e
@ -52,12 +55,16 @@ cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
chmod -R u+w,go+r-w,a-s . chmod -R u+w,go+r-w,a-s .
#fix correctly installing libraries in lib$LIBDIRSUFFIX
sed -i "s/lib /lib\${LIB_SUFFIX} /g" src/libepub/CMakeLists.txt
mkdir -p build mkdir -p build
cd build cd build
cmake \ cmake \
-DCMAKE_C_FLAGS="$SLKCFLAGS" \ -DCMAKE_C_FLAGS="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX="$LIBDIRSUFFIX" \
.. ..
make make
make install DESTDIR=$PKG make install DESTDIR=$PKG
@ -76,4 +83,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG 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="ebook-tools"
VERSION="0.1.1" VERSION="0.1.1"
HOMEPAGE="http://www.sourceforge.net/projects/ebook-tools" HOMEPAGE="http://www.sourceforge.net/projects/ebook-tools"
DOWNLOAD="http://downloads.sourceforge.net/ebook-tools/ebook-tools-0.1.1.tar.gz" DOWNLOAD="http://downloads.sourceforge.net/ebook-tools/ebook-tools-0.1.1.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="15946af6f946eabe8247cdef9ada2b88" MD5SUM="15946af6f946eabe8247cdef9ada2b88"
MAINTAINER="ppr:kut" MD5SUM_x86_64=""
EMAIL="HMWiesinger@gmx.at" MAINTAINER="pprkut"
EMAIL="pprkut@liwjatan.at"
APPROVED="rworkman" APPROVED="rworkman"