aboutsummaryrefslogtreecommitdiffstats
path: root/main/tcl-tls/APKBUILD
blob: ebadb2eae15947426f68cc1272f1a2773e4f7439 (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
50
51
52
53
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=tcl-tls
pkgver=1.6.4
pkgrel=0
pkgdesc="OpenSSL extension to Tcl"
url="http://tls.sourceforge.net/"
arch="all"
license="BSD"
depends=""
depends_dev="tcl-dev openssl-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/project/tls/tls/$pkgver/tls$pkgver-src.tar.gz"

_builddir="$srcdir/tls${pkgver}"

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-threads \
		--enable-shared \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="60df64be8d5c667d07709aff1818e03e  tls1.6.4-src.tar.gz"
sha256sums="0cd2c5552244c55747092e30ace17eb728d130c9a2bd489b26fc7c9f3669e4b8  tls1.6.4-src.tar.gz"
sha512sums="b0a102f0fb8ff9e4754af8bc4e9c5a49f4118f474ade4a4147df80a04270a7538b6cebf9f469589070f60fe82ff4e382f26e0eacd9f428e455d581586efc264a  tls1.6.4-src.tar.gz"