wok-6.x annotate ocaml/receipt @ rev 2297
Up: udev (138)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Feb 22 22:45:38 2009 +0100 (2009-02-22) |
parents | |
children | 4482e0fab13a |
rev | line source |
---|---|
pascal@1677 | 1 # SliTaz package receipt. |
pascal@1677 | 2 |
pascal@1677 | 3 PACKAGE="ocaml" |
pascal@1677 | 4 VERSION="3.10.2" |
pascal@1677 | 5 CATEGORY="system-tools" |
pascal@1677 | 6 SHORT_DESC="General-purpose programming language designed for safety and reliability." |
pascal@1677 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1677 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1677 | 9 WEB_SITE="http://caml.inria.fr/" |
pascal@1677 | 10 WGET_URL="${WEB_SITE}pub/distrib/$PACKAGE-${VERSION%.*}/$TARBALL" |
pascal@1677 | 11 |
pascal@1677 | 12 # Rules to configure and make the package. |
pascal@1677 | 13 compile_rules() |
pascal@1677 | 14 { |
pascal@1677 | 15 cd $src |
pascal@1677 | 16 ./configure --prefix $PWD/_pkg/usr \ |
pascal@1677 | 17 $(echo $CONFIGURE_ARGS | sed 's/--build=[^ ]*//' | sed 's/=/ /g') && |
pascal@1677 | 18 make world && make install |
pascal@1677 | 19 } |
pascal@1677 | 20 |
pascal@1677 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1677 | 22 genpkg_rules() |
pascal@1677 | 23 { |
pascal@1677 | 24 mkdir -p $fs/usr |
pascal@1677 | 25 cp -a $_pkg/usr/bin $fs/usr |
pascal@1677 | 26 cp -a $_pkg/usr/lib $fs/usr |
pascal@1677 | 27 } |
pascal@1677 | 28 |