Browse Source

development/notepadqq: Allow the binary to be found in $PATH.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
pull/47/head
Matteo Bernardini 7 years ago
committed by Willy Sudiarto Raharjo
parent
commit
a97c31bc50
No known key found for this signature in database GPG Key ID: 887B8374D7333381
  1. 4
      development/notepadqq/notepadqq.SlackBuild

4
development/notepadqq/notepadqq.SlackBuild

@ -79,6 +79,10 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG INSTALL_ROOT=$PKG
# Allow the binary to be found somewhere in $PATH
mkdir -p $PKG/usr/bin
ln -s /opt/notepadqq/bin/$PRGNAM $PKG/usr/bin/$PRGNAM
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

Loading…
Cancel
Save