archrelease: copy trunk to extra-x86_64
[arch-packages.git] / ocaml-ctypes / repos / extra-x86_64 / PKGBUILD
blob30da3de5c41e22e652826e25b31bad4864724761
1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
2 # Contributor: Armin K. <krejzi at email dot com>
4 pkgname=ocaml-ctypes
5 pkgver=0.20.2
6 pkgrel=1
7 pkgdesc="Library for binding to C libraries using pure OCaml"
8 arch=('x86_64')
9 url="https://github.com/ocamllabs/ocaml-ctypes"
10 license=('MIT')
11 depends=('ocaml' 'libffi' 'ocaml-integers' 'ocaml-bigarray-compat')
12 makedepends=('ocaml-findlib' 'ocaml-compiler-libs')
13 options=('!strip' '!makeflags')
14 source=($pkgname-$pkgver.tar.gz::https://github.com/ocamllabs/ocaml-ctypes/archive/$pkgver.tar.gz)
15 sha512sums=('99cdc77e5283b26fb8f00376f9fe87f84809f533544409036c622ef3bdeb4b6640ece1976da4ef5f4e7dff0ab5a8dd2994ea939fb8a2832d22579b8e854ee55e')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
19   make
22 package() {
23   cd "$srcdir/$pkgname-$pkgver"
25   local _destdir="$pkgdir$(ocamlfind printconf destdir)"
26   install -d "$_destdir/stublibs"
28   make OCAMLFIND_DESTDIR="$_destdir" install
30   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
33 # vim:set ts=2 sw=2 et: