diff options
Diffstat (limited to 'academic/wxmacmolplt/wxmacmolplt.SlackBuild')
-rw-r--r-- | academic/wxmacmolplt/wxmacmolplt.SlackBuild | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/academic/wxmacmolplt/wxmacmolplt.SlackBuild b/academic/wxmacmolplt/wxmacmolplt.SlackBuild index d1791a0ccb1a8..54cb8516e326f 100644 --- a/academic/wxmacmolplt/wxmacmolplt.SlackBuild +++ b/academic/wxmacmolplt/wxmacmolplt.SlackBuild @@ -5,9 +5,9 @@ # Written by Daniil Bratashov <dn2010@gmail.com> PRGNAM=wxmacmolplt -VERSION=${VERSION:-7.3} +VERSION=${VERSION:-7.4} ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -35,9 +35,6 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION -# Fix for PCGAMESS new raman activities format -patch -p1 -E < $CWD/wxmacmolplt-7.2.1-raman.patch - chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -45,6 +42,11 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Fix for PCGAMESS new raman activities format +patch -p1 < $CWD/wxmacmolplt-7.2.1-raman.patch +# Fix for Firefly format autodetection +patch -p1 < $CWD/wxmacmolplt-7.4-firefly.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -65,23 +67,21 @@ make install DESTDIR=$PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ xargs strip --strip-unneeded 2> /dev/null || true find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null + xargs strip --strip-unneeded 2> /dev/null || true ) -mkdir -p $PKG/usr/share/icons/hicolor/128x128/apps -cp resources/wxmacmolplt.png $PKG/usr/share/icons/hicolor/128x128/apps -mkdir -p $PKG/usr/share/applications -cp resources/wxmacmolplt.desktop $PKG/usr/share/applications - ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done ) +mkdir -p $PKG/usr/share/icons/hicolor/128x128/apps +cp resources/wxmacmolplt.png $PKG/usr/share/icons/hicolor/128x128/apps +mkdir -p $PKG/usr/share/applications +cp resources/wxmacmolplt.desktop $PKG/usr/share/applications + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS LICENSE NEWS README \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS LICENSE NEWS README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mv $PKG/usr/share/$PRGNAM/MacMolPlt_Manual.html $PKG/usr/doc/$PRGNAM-$VERSION mv $PKG/usr/share/$PRGNAM/Manual_pages $PKG/usr/doc/$PRGNAM-$VERSION @@ -90,4 +90,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |