diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2018-08-07 09:51:04 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-08-11 07:23:12 +0700 |
commit | a97c31bc50e2db789c03ef6db0bb5caaca0e56e7 (patch) | |
tree | aac7400b3260206f9f5d58fe167a64ee93a3c5d4 /development/notepadqq | |
parent | 873c5a34423cf0cf1f55f85c73da16b0d0ae54a9 (diff) | |
download | slackbuilds-a97c31bc50e2db789c03ef6db0bb5caaca0e56e7.tar.gz |
development/notepadqq: Allow the binary to be found in $PATH.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/notepadqq')
-rw-r--r-- | development/notepadqq/notepadqq.SlackBuild | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/development/notepadqq/notepadqq.SlackBuild b/development/notepadqq/notepadqq.SlackBuild index e6eb70b5a9..4038ed8334 100644 --- a/development/notepadqq/notepadqq.SlackBuild +++ b/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 |