blob: fe70a46dbfe9f270a19a6b7b2bcb36f446be448f (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: oliver < a t > first . in-berlin . de
# Contributor: Serge Zirukin <ftrvxmtrx@gmail.com>
# Contributor: Sergei Lebedev <superbobry@gmail.com>
# Contributor: Nicolas Pouillard <Nicolas.Pouillard@gmail.com>
# Contributor: Guillem Rieu <guillemr@gmx.net>
pkgname=ocamlnet
pkgver=4.1.5
pkgrel=1
pkgdesc="A library for Web and Internet programming in OCaml"
arch=('i686' 'x86_64')
url="http://projects.camlcity.org/projects/ocamlnet.html"
license=('GPL' 'LGPL')
depends=('ncurses' 'gnutls' 'krb5')
makedepends=('ocaml-findlib' 'ocaml' 'ocaml-pcre')
#makedepends=('ocaml-findlib' 'ocaml' 'ocaml-pcre' 'ocaml-ssl' 'ocaml-cryptokit')
options=('!strip' '!makeflags' 'staticlibs')
source=(http://download.camlcity.org/download/$pkgname-$pkgver.tar.gz)
sha256sums=('9511fbbc34339d8cd0fd10a9b3379c95e251b27db6219c561cda4828bf68ecde')
build(){
cd "$srcdir/$pkgname-$pkgver"
./configure -enable-gnutls -enable-gssapi -enable-pcre -bindir /usr/bin
# You also could configure to add some more support,
# if you have installed the according modules:
#
# ./configure \
# -enable-pcre \
# -enable-full-pcre \
# -enable-gtk2 \
# -enable-tcl \
# -enable-gnutls \
# -enable-gssapi \
# -enable-zip \
# -enable-nethttpd \
# -enable-apache \
# -enable-gtk \
make all opt
}
package(){
cd "$srcdir/$pkgname-$pkgver"
export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
install -dm755 "$OCAMLFIND_DESTDIR/stublibs"
env DESTDIR="$pkgdir" make install
install -d -m 0755 "${pkgdir}/usr/share/doc/$pkgname"
install -m 0644 -t "${pkgdir}/usr/share/doc/$pkgname/" doc/html-main/*
}
|