diff options
Diffstat (limited to 'development/menhir/menhir.SlackBuild')
-rw-r--r-- | development/menhir/menhir.SlackBuild | 16 |
1 files changed, 6 insertions, 10 deletions
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} |