summaryrefslogtreecommitdiffstats
path: root/libraries/libfm/libfm.SlackBuild
diff options
context:
space:
mode:
author Matteo Bernardini2012-12-19 03:08:08 +0100
committer dsomero2012-12-23 15:16:47 +0100
commit23b8c687d9c1de82297556d7a82f81555fe9f6a7 (patch)
tree16a44d58b35f7b1c8c2e3116a6bc5db2383b4fb9 /libraries/libfm/libfm.SlackBuild
parent4d841526538160b1ee1bc6eea1defecd06184f6a (diff)
downloadslackbuilds-23b8c687d9c1de82297556d7a82f81555fe9f6a7.tar.gz
libraries/libfm: Apply patches from upstream.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/libfm/libfm.SlackBuild')
-rw-r--r--libraries/libfm/libfm.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/libraries/libfm/libfm.SlackBuild b/libraries/libfm/libfm.SlackBuild
index 66affb1bce..2f14c4d849 100644
--- a/libraries/libfm/libfm.SlackBuild
+++ b/libraries/libfm/libfm.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=libfm
VERSION=${VERSION:-1.1.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -74,7 +74,10 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-sh autogen.sh || true
+# Apply patches from upstream
+for i in $CWD/patches/* ; do patch -p1 < $i ; done
+
+autoreconf -fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -92,6 +95,9 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
+# Fix include folders
+( cd $PKG/usr/include ; rm -fr libfm ; ln -s libfm-1.0 libfm )
+
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