From 7ba955674516d4c81473565065c857140d0dfa93 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sat, 5 Mar 2022 20:25:07 +0100 Subject: libraries/ocaml-camomile: Correctly handle github tarball. Signed-off-by: Matteo Bernardini Signed-off-by: Willy Sudiarto Raharjo --- libraries/ocaml-camomile/ocaml-camomile.SlackBuild | 9 ++++----- libraries/ocaml-camomile/ocaml-camomile.info | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/libraries/ocaml-camomile/ocaml-camomile.SlackBuild b/libraries/ocaml-camomile/ocaml-camomile.SlackBuild index 3e54b1bdfa..96e9b92d1f 100644 --- a/libraries/ocaml-camomile/ocaml-camomile.SlackBuild +++ b/libraries/ocaml-camomile/ocaml-camomile.SlackBuild @@ -28,8 +28,7 @@ BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -SRCNAM=camomile -SRCNAM2=Camomile +SRCNAM=Camomile if [ -z "$ARCH" ]; then case "$(uname -m)" in @@ -69,9 +68,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM2-$VERSION +rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.gz -cd $SRCNAM2-$VERSION +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -87,7 +86,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc -mv $PKG/usr/doc/$SRCNAM $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/doc/camomile $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 39935eb57d..7f6c089664 100644 --- a/libraries/ocaml-camomile/ocaml-camomile.info +++ b/libraries/ocaml-camomile/ocaml-camomile.info @@ -1,7 +1,7 @@ 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="" -- cgit v1.2.3