summaryrefslogtreecommitdiff
path: root/libraries/hoedown/hoedown.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/hoedown/hoedown.SlackBuild')
-rw-r--r--libraries/hoedown/hoedown.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/libraries/hoedown/hoedown.SlackBuild b/libraries/hoedown/hoedown.SlackBuild
index 50c252ee18..5f6acef3b7 100644
--- a/libraries/hoedown/hoedown.SlackBuild
+++ b/libraries/hoedown/hoedown.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=hoedown
-VERSION=${VERSION:-3.0.1}
+VERSION=${VERSION:-3.0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -72,13 +72,16 @@ find -L . \
sed -i '/^CFLAGS = /s/ -O3 / /g' Makefile*
sed -i 's/^CFLAGS = /CFLAGS += /' Makefile*
sed -i 's/^PREFIX = .*/PREFIX = \/usr/' Makefile*
-sed -i '/install /s/\/lib$/\/lib'$LIBDIRSUFFIX'/' Makefile*
+sed -i 's/^LIBDIR = .*/LIBDIR = \/usr\/lib'$LIBDIRSUFFIX'/' Makefile*
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+# Delete the static library
+rm -f $PKG/usr/lib$LIBDIRSUFFIX/libhoedown.a
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true