From 6c142172499e3f933afae642aa85b2e927f5deb2 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 4 Apr 2017 18:08:33 +0200 Subject: community/ocaml: set -e build fix and modernize --- community/ocaml/APKBUILD | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/community/ocaml/APKBUILD b/community/ocaml/APKBUILD index 5c6badb4ec..ebf7ce4876 100644 --- a/community/ocaml/APKBUILD +++ b/community/ocaml/APKBUILD @@ -18,19 +18,9 @@ source="http://caml.inria.fr/pub/distrib/ocaml-${pkgver%.*}/$pkgname-$pkgver.tar 050_all_objinfoldflags.patch " -_builddir="$srcdir/$pkgname-$pkgver" -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" #strip out -fomit-frame-pointer due to -pg local _cflags="$CFLAGS" @@ -51,14 +41,11 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" make BINDIR="$pkgdir"/usr/bin LIBDIR="$pkgdir"/usr/lib/ocaml MANDIR="$pkgdir"/usr/share/man install || return 1 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - - install -Dm644 INSTALL "$pkgdir"/usr/share/doc/$pkgname/INSTALL install -Dm644 Changes "$pkgdir"/usr/share/doc/$pkgname/Changes - install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README find "$pkgdir"/usr/lib/ocaml -name \*.ml -delete } -- cgit v1.2.3