summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b268d11b83f8bb85eb3a62f0ad8f5a22b8db053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Morgan Howe <mthowe@gmail.com>
# Contributor: calimeroteknik@free.fr

pkgname=zarith
pkgver=1.3
pkgrel=1
pkgdesc='Implements arithmetic and logical operations over arbitrary-precision integers'
arch=(x86_64 i686)
url='http://forge.ocamlcore.org/projects/zarith'
license=('GPL2')
depends=('glibc')
makedepends=('ocaml>=3.08')
source=("http://forge.ocamlcore.org/frs/download.php/1471/${pkgname}-${pkgver}.tgz")
md5sums=('9ed8ddafdebfa8c1b673dbe91a181f66')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure -installdir "${pkgdir}/usr/lib/ocaml" # install ignores DESTDIR
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  mkdir -p "${pkgdir}/usr/lib/ocaml"
  OCAMLFIND_LDCONF=ignore make install
}