archrelease: copy trunk to extra-x86_64
[arch-packages.git] / ocaml-integers / repos / community-x86_64 / PKGBUILD
blob6ae8ff47085b66b8fe36390246acf196371a750f
1 # Maintainer: Jürgen Hötzel <juergen@archlinux.org>
3 pkgname=ocaml-integers
4 pkgver=0.5.1
5 pkgrel=1
6 pkgdesc='Library for binding to C libraries using pure OCaml'
7 arch=('x86_64')
8 url=https://github.com/ocamllabs/ocaml-integers
9 license=('custom')
10 options=('!strip')
11 makedepends=('dune' 'ocaml-topkg' 'ocaml-findlib' 'ocaml-compiler-libs>=4.12.0' 'ocamlbuild' 'opam')
12 source=("$pkgname-$pkgver.tar.gz::https://github.com/ocamllabs/$pkgname/archive/$pkgver.tar.gz")
13 sha256sums=('f608ce98caf41ddb4eea90e8673bb8ff35acb07ef951bc0bf75b5989ef9b36b8')
16 build() {
17   cd ${pkgname}-$pkgver
18   dune build --profile release
21 package() {
22   cd ${pkgname}-$pkgver
24   opam-installer --prefix="${pkgdir}/usr" \
25                  --libdir="${pkgdir}$(ocamlc -where)" \
26                  --docdir="${pkgdir}/usr/share/doc" \
27                  --stubsdir="${pkgdir}$(ocamlc -where)/stublibs" \
28                  ./_build/default/integers.install
29   install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}"/LICENSE.md