1 # Maintainer: Serge Ziryukin <ftrvxmtrx@gmail.com>
6 pkgdesc="Code coverage tool for the Objective Caml language"
8 url=("http://bisect.x9c.fr")
10 depends=('ocaml' 'ocaml-findlib')
13 source=(http://bisect.x9c.fr/distrib/${_pkgname}-${pkgver}.tar.gz
14 fix-install-path.patch)
15 md5sums=('6e4be9696c902f74908fd835a84353e9'
16 '625e0530860bb85c07a1954733389c13')
19 cd "${srcdir}/${_pkgname}-${pkgver}"
21 patch -N -p1 -i "${srcdir}/fix-install-path.patch" || return 1
23 ./configure || return 1
28 OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
29 cd "${srcdir}/${_pkgname}-${pkgver}"
31 sed "s|PATH_INSTALL=|PATH_INSTALL=${pkgdir}/|" -i Makefile
32 mkdir -p "${OCAMLFIND_DESTDIR}"
33 OCAMLFIND_DESTDIR="${OCAMLFIND_DESTDIR}" DESTDIR="${pkgdir}" PREFIX="/usr" make install || return 1
34 install -D "doc/bisect.pdf" "${pkgdir}/usr/share/doc/${_pkgname}/bisect.pdf"