diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-27 10:18:54 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2022-02-27 22:27:51 -0600 |
commit | 38795c4b65a727c919aae4964d71a4efdeeb849b (patch) | |
tree | 9a6ad0f1ca05193ebbc68d143c3eee716273f8a8 /graphics/meshlab/meshlab.SlackBuild | |
parent | 16874eda101aa493d2cb24922a0941bb8d037ca3 (diff) | |
download | slackbuilds-38795c4b65a727c919aae4964d71a4efdeeb849b.tar.gz |
graphics/meshlab: Fix github filename, desktop, doinst.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'graphics/meshlab/meshlab.SlackBuild')
-rw-r--r-- | graphics/meshlab/meshlab.SlackBuild | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/graphics/meshlab/meshlab.SlackBuild b/graphics/meshlab/meshlab.SlackBuild index db322a1554..0263dd9551 100644 --- a/graphics/meshlab/meshlab.SlackBuild +++ b/graphics/meshlab/meshlab.SlackBuild @@ -22,6 +22,11 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220222 bkw: Modified by SlackBuilds.org: +# - use the correct filename in the github URL. +# - make .desktop file validate. +# - fix doinst.sh. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=meshlab @@ -40,9 +45,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -71,19 +73,19 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz --transform="s#$SRCNAM-$VERSION/#$VERSION/#" -cd $PRGNAM-$VERSION/src +FILENAME=$PRGNAM-$SRCNAM-$VERSION + +rm -rf $FILENAME +tar xvf $CWD/$FILENAME.tar.gz +cd $FILENAME/src tar xvf $CWD/$VCGLIB-$VERSION.tar.gz --transform="s#$VCGLIB-$VERSION/#$VCGLIB/#" -cd - -chown -R root:root $PRGNAM-$VERSION -find -L $PRGNAM-$VERSION \ +cd .. +chown -R root:root . +find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -cd $PRGNAM-$VERSION + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ mkdir -p build cmake \ @@ -119,7 +121,9 @@ if [ -d $PKG/usr/man ]; then fi # fix version in desktop entry -sed -i "s#Version=.*#Version=$VERSION#" $PKG/usr/share/applications/$PRGNAM.desktop +#sed -i "s#Version=.*#Version=$VERSION#" $PKG/usr/share/applications/$PRGNAM.desktop +# 20220227 bkw: wrong. Version in a .desktop file is the version of the +# desktop file specification (usually 1.0), not the version of the application. mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ |