updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / ocaml-bisect / PKGBUILD
blob2d3f1fbcf77c8ae7a3517b915305dec64d6167ad
1 # Maintainer: Serge Ziryukin <ftrvxmtrx@gmail.com>
3 pkgname=ocaml-bisect
4 pkgver=1.1
5 pkgrel=1
6 pkgdesc="Code coverage tool for the Objective Caml language"
7 arch=('i686' 'x86_64')
8 url=("http://bisect.x9c.fr")
9 license=('GPLv3')
10 depends=('ocaml' 'ocaml-findlib')
11 makedepends=('ocaml')
12 _pkgname=bisect
13 source=(http://bisect.x9c.fr/distrib/${_pkgname}-${pkgver}.tar.gz
14   fix-install-path.patch)
15 md5sums=('6e4be9696c902f74908fd835a84353e9'
16          '625e0530860bb85c07a1954733389c13')
18 build () {
19   cd "${srcdir}/${_pkgname}-${pkgver}"
21   patch -N -p1 -i "${srcdir}/fix-install-path.patch" || return 1
22   chmod +x ./configure
23   ./configure || return 1
24   make all || return 1
27 package () {
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"