summaryrefslogtreecommitdiff
path: root/development/menhir/menhir.SlackBuild
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2014-05-07 17:53:10 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-05-12 07:35:49 +0700
commit12d80c284ff6f74749f132215c8d1333c0e26499 (patch)
tree8a39e495d6e991d0cf20433e18f767fc20ae7f72 /development/menhir/menhir.SlackBuild
parent088e8b158bfc72cd1f31b3c132d66ad3bfa83a7a (diff)
downloadslackbuilds-12d80c284ff6f74749f132215c8d1333c0e26499.tar.gz
development/menhir: Updated for version 20140422.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/menhir/menhir.SlackBuild')
-rw-r--r--development/menhir/menhir.SlackBuild16
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}