diff options
-rw-r--r-- | graphics/mypaint/mypaint.SlackBuild | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/graphics/mypaint/mypaint.SlackBuild b/graphics/mypaint/mypaint.SlackBuild index ed4e795c4abc..089622dfa1ec 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 |