summaryrefslogtreecommitdiff
path: root/libraries/ocaml-batteries/ocaml-batteries.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2013-11-14 21:18:34 +0700
committerRobby Workman <rworkman@slackbuilds.org>2013-11-14 14:32:30 -0600
commitd168a001be0670dd325a0b7d115518d6dc656544 (patch)
tree14caea08e1916a423ea5a897c67e62467e00c1fc /libraries/ocaml-batteries/ocaml-batteries.SlackBuild
parent0d82b962d181b0c7de3043398e39ed6f7f3775f0 (diff)
downloadslackbuilds-d168a001be0670dd325a0b7d115518d6dc656544.tar.gz
libraries/ocaml-batteries: Updated for version 2.1
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/ocaml-batteries/ocaml-batteries.SlackBuild')
-rw-r--r--libraries/ocaml-batteries/ocaml-batteries.SlackBuild18
1 files changed, 12 insertions, 6 deletions
diff --git a/libraries/ocaml-batteries/ocaml-batteries.SlackBuild b/libraries/ocaml-batteries/ocaml-batteries.SlackBuild
index 47b981522b..9a9ef20446 100644
--- a/libraries/ocaml-batteries/ocaml-batteries.SlackBuild
+++ b/libraries/ocaml-batteries/ocaml-batteries.SlackBuild
@@ -21,7 +21,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ocaml-batteries
-VERSION=1.4.1
+VERSION=${VERSION:-2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -62,15 +62,21 @@ rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -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 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make all
-make doc
+#make doc
-mkdir -p $PKG/$(ocamlfind printconf destdir)
-make install DESTDIR=$PKG/$(ocamlfind printconf destdir)
+OCAMLFIND_DESTDIR="$PKG/$(ocamlfind printconf destdir)"
+sed "s|PATH_INSTALL=|PATH_INSTALL=$PKG/|" -i Makefile
+mkdir -p "${OCAMLFIND_DESTDIR}"
+OCAMLFIND_DESTDIR="${OCAMLFIND_DESTDIR}" DESTDIR="$PKG" PREFIX="/usr" make install
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
make install-doc DOCROOT=$PKG/usr/doc/$PRGNAM-$VERSION
@@ -81,7 +87,7 @@ find $PKG -print0 | xargs -0 file \
|| true
cp -a \
- ChangeLog FAQ LICENSE README* VERSION \
+ ChangeLog FAQ LICENSE README* \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild