# HG changeset patch # User Pascal Bellard # Date 1493360473 -7200 # Node ID bdce106d4c57d9d43a3fc612c4be2a4d56aa3d1f # Parent 8cf349cc0a477da4031456b60f632157e7bfbf98 lives: fix symlink (thanks I-Jurij) diff -r 8cf349cc0a47 -r bdce106d4c57 lives/receipt --- a/lives/receipt Thu Apr 27 13:48:01 2017 +0200 +++ b/lives/receipt Fri Apr 28 08:21:13 2017 +0200 @@ -18,25 +18,25 @@ # compile_rules() { - cd $src - ./configure \ - --prefix=/usr \ - --disable-jack \ - $CONFIGURE_ARGS && - make && - make DESTDIR=$DESTDIR install 2>&1 | \ - sed "s/gmo': No such file/gmo': no such file/" + sed -i 's|\$(LN_S) \$(DESTDIR)\$(bindir)/lives-exe|$(LN_S) lives-exe|' Makefile* + ./configure \ + --prefix=/usr \ + --disable-jack \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$DESTDIR install 2>&1 | \ + sed "s/gmo': No such file/gmo': no such file/" } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib $fs/usr/share - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/lib/*.so* $fs/usr/lib - cp -a $install/usr/lib/lives $fs/usr/lib - cp -a $install/usr/share/lives $fs/usr/share - find $fs/usr/lib/lives -name "*.la" -exec rm '{}' \; - # Fix the name (.desktop) file. - sed -i 's/^Exec=.*/Exec=lives-exe/' $install/usr/share/applications/LiVES.desktop + mkdir -p $fs/usr/lib $fs/usr/share + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib/*.so* $fs/usr/lib + cp -a $install/usr/lib/lives $fs/usr/lib + cp -a $install/usr/share/lives $fs/usr/share + find $fs/usr/lib/lives -name "*.la" -exec rm '{}' \; + # Fix the name (.desktop) file. + sed -i 's/^Exec=.*/Exec=lives-exe/' $install/usr/share/applications/LiVES.desktop }