archrelease: copy trunk to extra-x86_64
[arch-packages.git] / ocaml-integers / trunk / PKGBUILD
blob46271216eaa976f612d8109b1199c9829eaef207
1 # Maintainer: Jürgen Hötzel <juergen@archlinux.org>
3 pkgname=ocaml-integers
4 pkgver=0.5.0
5 pkgrel=1
6 pkgdesc='Library for binding to C libraries using pure OCaml'
7 arch=('i686' '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=('b0116f785d62d03ad8873bdaededcdc637aeca6709318ed343f9cc5568bfa1f2')
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