summaryrefslogtreecommitdiff
path: root/pcr/ocaml-ssl/PKGBUILD
blob: 6ccbcbe2c17ba1c7ed268160a38e5a212412fcbd (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
# Maintainer (Arch): Sigmund Vestergaard <sigmundv at gmail dot com>
# Contributor (Arch): Denis Wernert <denis@wernert.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=ocaml-ssl
pkgver=0.5.1
pkgrel=1
pkgdesc="OCaml SSL Library"
arch=('i686' 'x86_64')
url="http://savonet.sourceforge.net/"
license=('custom')
depends=('openssl')
makedepends=('ocaml' 'ocaml-findlib' 'autoconf')
source=(https://github.com/savonet/${pkgname}/archive/${pkgver}.tar.gz)
options=(!libtool !strip zipman !makeflags staticlibs)
md5sums=('5449389dfefac721d28144665db1643f')


build() {
  cd $pkgname-$pkgver
  autoconf
  ./configure --prefix /usr
  make
}

package() {
  OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
  cd $pkgname-$pkgver
  mkdir -p $OCAMLFIND_DESTDIR/stublibs
  OCAMLFIND_INSTFLAGS="-destdir $OCAMLFIND_DESTDIR -ldconf /dev/null" make install

  mkdir -p $pkgdir/usr/share/licenses/$pkgname/
  awk 'BEGIN{P=0} /License/ {P = 1;} {if (P) print}' README.md > $pkgdir/usr/share/licenses/$pkgname/license
}

# vim:set ts=2 sw=2 et: