blob: dd8a0f2ca7bac5c431a5d58ac36333c400c6c41d (
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
31
|
# 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.9.2
pkgrel=3
pkgdesc='OCaml bindings to libcurl'
url='https://ygrek.org/p/ocurl'
arch=('i686' 'x86_64' 'armv7h')
license=('MIT')
depends=('curl>=7.28.0')
makedepends=('ocaml-findlib' 'ocaml-lwt')
options=('!strip' '!makeflags' 'staticlibs')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ygrek/ocurl/archive/${pkgver}.tar.gz")
sha256sums=('dfa55b83f2ba1f32898c3488fd7bfcd55414f4719f563d83d126e5b9de2bd156')
build() {
cd "${srcdir}/ocurl-${pkgver}"
./configure --prefix /usr
make
}
package() {
cd "${srcdir}/ocurl-${pkgver}"
export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
install -dm 755 "${OCAMLFIND_DESTDIR}/stublibs"
make install FINDLIB=ocamlfind
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|