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

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2018-08-07 09:51:04 +02:00 committed by Willy Sudiarto Raharjo
parent 873c5a3442
commit a97c31bc50
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -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