summaryrefslogtreecommitdiff
path: root/community/tls/PKGBUILD
blob: 426ddcfd75af35af2ae27c52df23dd4bff361e2c (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
# $Id: PKGBUILD 14340 2010-04-02 23:21:39Z foutrelis $
# Maintainer: Sergej Pupykin <pupykin.s@gmail.com>
# Contributor: Mario Vazquez <mariovazq@gmail.com> 

pkgname=tls
pkgver=1.6
pkgrel=3
pkgdesc="OpenSSL extension to Tcl"
arch=('i686' 'x86_64')
url="http://tls.sourceforge.net/"
license=('GPL')
depends=('tcl' 'openssl' 'awk')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname$pkgver-src.tar.gz)
md5sums=('eb326ff9e6fc3b9885aa5c72fb8df3bf')

build() {
  cd $startdir/src/tls$pkgver

  ./configure --prefix=/usr --with-ssl-dir=/usr
  make || return 1
  make test | awk '{print}/FAILED/{F=1}END{if(F)exit 1}'
  make DESTDIR=$startdir/pkg install || return 1
#  sed -i 's|ifneeded tls 1.5|ifneeded tls 1.50|' $startdir/pkg/usr/lib/tls1.50/pkgIndex.tcl
  ln -s tls1.6/libtls1.6.so $pkgdir/usr/lib/libtls1.6.so
}