mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-07 20:27:02 +01:00
libraries/ocaml-camomile: Updated for version 1.0.2.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
3c7420c021
commit
a38ea85460
2 changed files with 18 additions and 37 deletions
|
@ -21,15 +21,16 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=ocaml-camomile
|
PRGNAM=ocaml-camomile
|
||||||
VERSION=${VERSION:-0.8.5}
|
VERSION=${VERSION:-1.0.2}
|
||||||
BUILD=${BUILD:-2}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
SRCNAM=camomile
|
SRCNAM=camomile
|
||||||
|
SRCNAM2=Camomile
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$(uname -m)" in
|
case "$(uname -m)" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i586 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
*) ARCH=$(uname -m) ;;
|
*) ARCH=$(uname -m) ;;
|
||||||
esac
|
esac
|
||||||
|
@ -40,8 +41,8 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i586" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
@ -58,9 +59,9 @@ set -e
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $SRCNAM-$VERSION
|
rm -rf $SRCNAM2-$VERSION
|
||||||
tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
|
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||||
cd $SRCNAM-$VERSION
|
cd $SRCNAM2-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
|
@ -68,35 +69,15 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
# Install missing library, thanks debian
|
ocaml configure.ml
|
||||||
patch -p1 < $CWD/0002-Install-missing-camomileLibrary.a.patch
|
dune build -p camomile @install
|
||||||
|
DESTDIR=$PKG dune install --prefix=/usr --libdir="$(ocamlfind printconf destdir)"
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
./configure --prefix=/usr
|
|
||||||
|
|
||||||
# add DESTDIR for `install-data'
|
|
||||||
sed -i 's|^prefix=\(.*\)$|prefix=$(DESTDIR)\1|' Makefile
|
|
||||||
|
|
||||||
# for `install-without-ocamlfind'
|
|
||||||
sed -i 's|^OCAMLLIB = \(.*\)$|OCAMLLIB = $(DESTDIR)\1|' Makefile
|
|
||||||
|
|
||||||
# for `install-with-ocamlfind'
|
|
||||||
long='$(DESTDIR)/$$(ocamlfind printconf destdir)'
|
|
||||||
sed -i "s|\\(ocamlfind install\\)| mkdir -p $long; \\1 -destdir $long |" Makefile
|
|
||||||
|
|
||||||
make -j1
|
|
||||||
make install DESTDIR=$PKG
|
|
||||||
|
|
||||||
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
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a \
|
cp -a *.md $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
COPYING Changes README \
|
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="ocaml-camomile"
|
PRGNAM="ocaml-camomile"
|
||||||
VERSION="0.8.5"
|
VERSION="1.0.2"
|
||||||
HOMEPAGE="http://camomile.sourceforge.net/"
|
HOMEPAGE="http://camomile.sourceforge.net/"
|
||||||
DOWNLOAD="https://github.com/yoriyuki/Camomile/releases/download/rel-0.8.5/camomile-0.8.5.tar.bz2"
|
DOWNLOAD="https://github.com/yoriyuki/Camomile/archive/1.0.2/camomile-1.0.2.tar.gz"
|
||||||
MD5SUM="1e25b6cd4efd26ab38a667db18d83f02"
|
MD5SUM="2ec60575e485b0b92f821949a81acb4d"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="camlp4"
|
REQUIRES="camlp4"
|
||||||
|
|
Loading…
Reference in a new issue