community/opam: rebuild with ocaml 4.06.1

This commit is contained in:
Jakub Jirutka 2018-03-10 00:02:35 +01:00
parent bf4ce05600
commit 51804ebea8

View File

@ -1,14 +1,15 @@
# Contributor: Michael Zuo <muh.muhten@gmail.com>
# Maintainer: Anil Madhavapeddy <anil@recoil.org>
# FIXME: lib-ext downloads dependencies; package them and use system-provided!
pkgname=opam
pkgver=1.2.2
pkgrel=3
pkgrel=4
pkgdesc="OCaml Package Manager"
url="https://opam.ocaml.org"
arch="all !x86 !armhf !s390x" # ocaml not avail on excluded platforms
license="LGPL-3.0"
depends="ocaml ocaml-camlp4 curl tar unzip rsync aspcud patch"
makedepends="ocaml-camlp4-dev"
makedepends="ocaml-compiler-libs ocaml-camlp4-dev"
source="https://github.com/ocaml/$pkgname/releases/download/$pkgver/$pkgname-full-$pkgver.tar.gz
fix-default-stubsdir.patch"
builddir="$srcdir/$pkgname-full-$pkgver"
@ -24,7 +25,10 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var
make -j1 lib-ext all
# -unsafe-string needed to make it build with ocaml >=4.06.
OCAMLFLAGS="-unsafe-string" \
make -j1 lib-ext all
}
package() {