diff options
-rw-r--r-- | development/menhir/doinst.sh | 3 | ||||
-rw-r--r-- | development/menhir/menhir.SlackBuild | 16 | ||||
-rw-r--r-- | development/menhir/menhir.info | 6 |
3 files changed, 12 insertions, 13 deletions
diff --git a/development/menhir/doinst.sh b/development/menhir/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/development/menhir/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/development/menhir/menhir.SlackBuild b/development/menhir/menhir.SlackBuild index cda403ac55..3bfa610842 100644 --- a/development/menhir/menhir.SlackBuild +++ b/development/menhir/menhir.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=menhir -VERSION=${VERSION:-20130911} +VERSION=${VERSION:-20140422} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -74,22 +74,17 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# fix doc and man page path +sed -i -e 's/share\/doc/doc\//' -e 's/share\/man/man\//' Makefile + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ +make PREFIX=$PKG/usr all make install PREFIX=$PKG/usr 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 -find $PKG -name perllocal.pod \ - -o -name ".packlist" \ - -o -name "*.bs" \ - | xargs rm -f - -mkdir -p $PKG/usr/man -mv $PKG/usr/share/man/man1 $PKG/usr/man -rm -rf $PKG/usr/share/man - find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done @@ -99,6 +94,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/development/menhir/menhir.info b/development/menhir/menhir.info index b6f41b46ad..dea167d8c3 100644 --- a/development/menhir/menhir.info +++ b/development/menhir/menhir.info @@ -1,8 +1,8 @@ PRGNAM="menhir" -VERSION="20130911" +VERSION="20140422" HOMEPAGE="http://cristal.inria.fr/~fpottier/menhir/" -DOWNLOAD="http://cristal.inria.fr/~fpottier/menhir/menhir-20130911.tar.gz" -MD5SUM="66374f3626f9403b37eed43819210113" +DOWNLOAD="http://cristal.inria.fr/~fpottier/menhir/menhir-20140422.tar.gz" +MD5SUM="86c410cb088423cec7e20965e70cd8b4" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="ocaml-findlib" |