summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
Diffstat (limited to 'development')
-rw-r--r--development/kdiff3/kdiff3.SlackBuild16
-rw-r--r--development/kdiff3/kdiff3.info2
2 files changed, 13 insertions, 5 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 {} \;
diff --git a/development/kdiff3/kdiff3.info b/development/kdiff3/kdiff3.info
index a2ce53af9e..80e6ba331b 100644
--- a/development/kdiff3/kdiff3.info
+++ b/development/kdiff3/kdiff3.info
@@ -1,7 +1,7 @@
PRGNAM="kdiff3"
VERSION="0.9.92"
HOMEPAGE="http://kdiff3.sourceforge.net"
-DOWNLOAD="http://dl.sourceforge.net/kdiff3/kdiff3-0.9.92.tar.gz"
+DOWNLOAD="http://downloads.sourceforge.net/kdiff3/kdiff3-0.9.92.tar.gz"
MD5SUM="c7b52bfee6a085393de0c4f83732e8f0"
MAINTAINER="Michiel van Wessem"
EMAIL="michiel@slackbuilds.org"