From bab69f551d7b7cf14511645fb1f8bbf9b644b0bd Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Thu, 24 Feb 2022 22:19:02 +0100 Subject: libraries/ocaml-camomile: Fix build and deps. Signed-off-by: Matteo Bernardini Signed-off-by: Willy Sudiarto Raharjo --- libraries/ocaml-camomile/ocaml-camomile.SlackBuild | 11 ++++++----- libraries/ocaml-camomile/ocaml-camomile.info | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'libraries/ocaml-camomile') diff --git a/libraries/ocaml-camomile/ocaml-camomile.SlackBuild b/libraries/ocaml-camomile/ocaml-camomile.SlackBuild index 5af1080b374e..3e54b1bdfa44 100644 --- a/libraries/ocaml-camomile/ocaml-camomile.SlackBuild +++ b/libraries/ocaml-camomile/ocaml-camomile.SlackBuild @@ -28,7 +28,8 @@ BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -SRCNAM=Camomile +SRCNAM=camomile +SRCNAM2=Camomile if [ -z "$ARCH" ]; then case "$(uname -m)" in @@ -68,9 +69,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM-$VERSION +rm -rf $SRCNAM2-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.gz -cd $SRCNAM-$VERSION +cd $SRCNAM2-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -85,8 +86,8 @@ DESTDIR=$PKG dune install --prefix=/usr --libdir="$(ocamlfind printconf destdir) 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 -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a *.md $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/usr/doc +mv $PKG/usr/doc/$SRCNAM $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/libraries/ocaml-camomile/ocaml-camomile.info b/libraries/ocaml-camomile/ocaml-camomile.info index 1239d8b1c412..39935eb57d28 100644 --- a/libraries/ocaml-camomile/ocaml-camomile.info +++ b/libraries/ocaml-camomile/ocaml-camomile.info @@ -1,10 +1,10 @@ PRGNAM="ocaml-camomile" VERSION="1.0.2" HOMEPAGE="http://camomile.sourceforge.net/" -DOWNLOAD="https://github.com/yoriyuki/Camomile/archive/1.0.2/Camomile-1.0.2.tar.gz" +DOWNLOAD="https://github.com/yoriyuki/Camomile/archive/1.0.2/camomile-1.0.2.tar.gz" MD5SUM="2ec60575e485b0b92f821949a81acb4d" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="camlp4" +REQUIRES="dune ocaml-findlib" MAINTAINER="Jockey S. Kyd" EMAIL="jockey.kyd@gmail.com" -- cgit v1.2.3