summaryrefslogtreecommitdiff
path: root/libraries/hoedown/hoedown.SlackBuild
diff options
context:
space:
mode:
authorAntonio Hernández Blas <hba.nihilismus@gmail.com>2015-07-27 08:44:27 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-07-28 05:24:50 +0700
commit211abe9142091ec16a470db0acbdb61bfc8d4804 (patch)
treed317fb937910ee80e9640fc0b389bc23de463db0 /libraries/hoedown/hoedown.SlackBuild
parent0332d19b57f1e1a5e352e102a88341b1c2bb0014 (diff)
downloadslackbuilds-211abe9142091ec16a470db0acbdb61bfc8d4804.tar.gz
libraries/hoedown: Updated for version 3.0.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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