upgpkg: sbcl 2.3.1-1
[arch-packages.git] / ocaml-integers / trunk / PKGBUILD
blob173d2d989dc50eaa455cec8c3cfa15869eab0508
1 # Maintainer: Jürgen Hötzel <juergen@archlinux.org>
3 pkgname=ocaml-integers
4 pkgver=0.7.0
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.14.0' 'ocamlbuild' 'opam' 'ocaml-stdlib-shims')
12 source=("$pkgname-$pkgver.tar.gz::https://github.com/ocamllabs/$pkgname/archive/$pkgver.tar.gz")
13 sha256sums=('8bb517fa9a1818246eb8c4ce34ee1489fbebb4b92defa3a25d13cab8d23ec685')
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