aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2016-07-09 22:11:14 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-17 07:49:40 +0700
commita08ce29c469256168e696f3b077041c1665d131d (patch)
tree5418105a166fc44fbdafa7d5f4350cf0c93de48b /graphics
parent40828c4945dd748117a4c5747c1623286f953e8f (diff)
graphics/mypaint: Fix library location.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/mypaint/mypaint.SlackBuild10
1 files changed, 4 insertions, 6 deletions
diff --git a/graphics/mypaint/mypaint.SlackBuild b/graphics/mypaint/mypaint.SlackBuild
index ed4e795c4abc5..089622dfa1ec0 100644
--- a/graphics/mypaint/mypaint.SlackBuild
+++ b/graphics/mypaint/mypaint.SlackBuild
@@ -60,18 +60,16 @@ find -L . \
# Respect our $LIBDIRSUFFIX
sed -i "s|prefix/lib/|prefix/lib$LIBDIRSUFFIX/|" SCons* brushlib/SConscript
-sed -i "s|lib/$PRGNAM/|lib$LIBDIRSUFFIX/$PRGNAM/|" $PRGNAM.py
+sed -i "s|'lib'|'lib$LIBDIRSUFFIX'|" $PRGNAM.py
+sed -i "s|lib/pkgconfig|lib$LIBDIRSUFFIX/pkgconfig|g" brushlib/SConscript
# Use our CFLAGS
sed -i "s|-O3|$SLKCFLAGS|g" SConstruct
scons prefix="$PKG"/usr install
-# Fix the pkgconfig file
-sed -i \
- -e "s|$PKG||" \
- -e "s|/lib$|/lib$LIBDIRSUFFIX|" \
- $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/lib$PRGNAM.pc
+# Stuff unused and broken
+rm -fR $PKG/usr/include $PKG/usr/lib$LIBDIRSUFFIX/{libmypaint.a,pkgconfig}
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