blob: e1e4e28b1b4c44bf9702c59c581ded59872aa11e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: Christopher Price <pricechrispy at gmail dot com>
# Contributor: Patrick Northon <northon_patrick3@yahoo.ca>
# Contributor: Flávio Tapajós <tapajos at outlook doc com>
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
# Contributor: Eric Bailey <nerflad@gmail.com>
pkgname=ocaml-curl
pkgver=0.10.0
pkgrel=2
pkgdesc='OCaml bindings to libcurl'
url='https://ygrek.org/p/ocurl'
arch=('x86_64')
license=('MIT')
depends=('curl>=7.28.0')
makedepends=('ocaml' 'ocaml-findlib' 'dune' 'ocaml-lwt' 'pkg-config')
options=('!strip' 'staticlibs')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ygrek/ocurl/archive/${pkgver}.tar.gz")
sha256sums=('68b5c12bde559f11e362e3bfe92601c525893f7a2349c7a75198c54d3ea2cce2')
build() {
cd "${srcdir}/ocurl-${pkgver}"
export OCAMLPATH="$(ocamlfind printconf destdir)"
dune build
}
package() {
cd "${srcdir}/ocurl-${pkgver}"
dune install --destdir="${pkgdir}" --prefix="/usr" --libdir="$(ocamlfind printconf destdir)"
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|