# $Id$ # Maintainer: Evangelos Foutras # Contributor: Armin K. pkgname=ocaml-ctypes pkgver=0.10.2 pkgrel=1 pkgdesc="Library for binding to C libraries using pure OCaml" arch=('i686' 'x86_64') url="https://github.com/ocamllabs/ocaml-ctypes" license=('MIT') depends=('ocaml=4.04.0' 'libffi') makedepends=('ocaml-findlib') options=('!strip' '!makeflags') source=($pkgname-$pkgver.tar.gz::https://github.com/ocamllabs/ocaml-ctypes/archive/$pkgver.tar.gz) sha256sums=('9888667de03c330d3845e8ded0df53f9e1d234be2c3696517a1e98e176116cea') build() { cd "$srcdir/$pkgname-$pkgver" make } package() { cd "$srcdir/$pkgname-$pkgver" local _destdir="$pkgdir$(ocamlfind printconf destdir)" install -d "$_destdir/stublibs" make OCAMLFIND_DESTDIR="$_destdir" install install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } # vim:set ts=2 sw=2 et: