summaryrefslogtreecommitdiff
path: root/pcr/ocaml-ssl/PKGBUILD
blob: 412b9939a8563b3a00fd13495b910266cf95626c (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
# Maintainer (AUR): robertfoster
# Contributor (AUR): Sigmund Vestergaard <sigmundv at gmail dot com>
# Contributor (AUR): Denis Wernert <denis@wernert.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

# parabola changes and rationale:
#  no changes.

pkgname=ocaml-ssl
pkgver=0.5.5
pkgrel=1
pkgdesc="OCaml SSL Library"
arch=('i686' 'x86_64' 'armv7h')
url="http://savonet.sourceforge.net/"
license=('custom')
depends=('openssl')
makedepends=('ocaml' 'ocaml-findlib' 'autoconf')
source=(https://github.com/savonet/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz)
options=(!libtool !strip zipman !makeflags staticlibs)

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
}

md5sums=('cdb1cdf9ee8c582165d4d11f35e53c4d')