wok view ocaml/receipt @ rev 24073

ocaml: disable-force-safe-string
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 08 06:56:08 2021 +0000 (2021-07-08)
parents 5ea0ce1cecc0
children bf28cc07ebf1
line source
1 # SliTaz package receipt.
3 PACKAGE="ocaml"
4 VERSION="4.10.0"
5 CATEGORY="system-tools"
6 TAGS="language programming"
7 SHORT_DESC="General-purpose programming language designed for safety and reliability."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="QPL LGPL2"
10 WEB_SITE="https://ocaml.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION.tar.gz"
15 DEPENDS="xorg-libX11 xorg-libXau xorg-libXdmcp"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --prefix /usr \
28 --bindir /usr/bin \
29 --libdir /usr/lib \
30 --mandir /usr/share/man/man1 \
31 --disable-force-safe-string \
32 $(echo $CONFIGURE_ARGS | sed 's/--build=[^ ]*//' | sed 's/=/ /g') &&
33 make -j1 world opt &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib $fs/usr
44 }