summaryrefslogtreecommitdiff
path: root/source/kde/pre-install/kdewebdev/tidy
diff options
context:
space:
mode:
Diffstat (limited to 'source/kde/pre-install/kdewebdev/tidy')
-rw-r--r--source/kde/pre-install/kdewebdev/tidy/tidy.SlackBuild6
-rw-r--r--source/kde/pre-install/kdewebdev/tidy/tidy.build3
2 files changed, 8 insertions, 1 deletions
diff --git a/source/kde/pre-install/kdewebdev/tidy/tidy.SlackBuild b/source/kde/pre-install/kdewebdev/tidy/tidy.SlackBuild
index 6d8c3a7d..399cc1f8 100644
--- a/source/kde/pre-install/kdewebdev/tidy/tidy.SlackBuild
+++ b/source/kde/pre-install/kdewebdev/tidy/tidy.SlackBuild
@@ -21,6 +21,8 @@
# This file is an example, so feel free to fix it if it gets out of date. :-)
+cd $(dirname $0) ; CWD=$(pwd)
+
PKGNAM=tidy
VERSION=${VERSION:-20100503T2309}
BUILD=${BUILD:-1}
@@ -35,7 +37,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-${PKGNAM}
@@ -85,6 +86,9 @@ CFLAGS="$SLKCFLAGS" \
make -j4 || make || exit 1
make install DESTDIR=$PKG || exit 1
+# Don't ship .la files:
+rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.la
+
# Strip binaries:
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
diff --git a/source/kde/pre-install/kdewebdev/tidy/tidy.build b/source/kde/pre-install/kdewebdev/tidy/tidy.build
index b638b24e..45f7631f 100644
--- a/source/kde/pre-install/kdewebdev/tidy/tidy.build
+++ b/source/kde/pre-install/kdewebdev/tidy/tidy.build
@@ -81,6 +81,9 @@ CFLAGS="$SLKCFLAGS" \
make -j4 || exit 1
make install DESTDIR=$PKG || exit 1
+# Don't ship .la files:
+rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.la
+
# Strip binaries:
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null