diff options
Diffstat (limited to 'libraries/ocaml-batteries/ocaml-batteries.SlackBuild')
-rw-r--r-- | libraries/ocaml-batteries/ocaml-batteries.SlackBuild | 18 |
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 |