summaryrefslogtreecommitdiff
path: root/development/kdiff3/kdiff3.SlackBuild
diff options
context:
space:
mode:
authorMichiel van Wessem <michiel@slackbuilds.org>2010-05-12 17:38:35 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:38:35 +0200
commit897fdfcb8e9fff9b4b12fc1475a11947d2109997 (patch)
tree0a984c992b6aabdefaef61507fbc0ba8a8915a56 /development/kdiff3/kdiff3.SlackBuild
parent7cbd52e2e9ea9bd9c433b64a2c17d4ea8632aef5 (diff)
downloadslackbuilds-897fdfcb8e9fff9b4b12fc1475a11947d2109997.tar.gz
development/kdiff3: Updated for version 0.9.92
Diffstat (limited to 'development/kdiff3/kdiff3.SlackBuild')
-rw-r--r--development/kdiff3/kdiff3.SlackBuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/development/kdiff3/kdiff3.SlackBuild b/development/kdiff3/kdiff3.SlackBuild
index 81380de606..c0595517af 100644
--- a/development/kdiff3/kdiff3.SlackBuild
+++ b/development/kdiff3/kdiff3.SlackBuild
@@ -23,7 +23,6 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-set -e
PRGNAM=kdiff3
VERSION=0.9.92
@@ -35,8 +34,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCFILES="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO"
+set -e
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
@@ -57,8 +56,11 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=$KDEPREF \
- --localstatedir=/var \
--sysconfdir=/etc \
+ --docdir=/usr/doc \
+ --mandir=/usr/man \
+ --htmldir=/usr/doc \
+ --localstatedir=/var \
--program-prefix="" \
--program-suffix="" \
--disable-debug
@@ -66,8 +68,14 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;