aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libressl/APKBUILD
blob: 53742e9e06bf7556c48ddeb90a6156c2a35ab340 (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
# Contributor: Orion <systmkor@gmail.com>
# Maintainer: Orion <systmkor@gmail.com>
#
#
pkgname=libressl
pkgver=2.1.4
pkgrel=0
pkgdesc="FREE version of the SSL/TLS protocol forked from OpenSSL - Portable edition"
url="http://www.libressl.org/"
arch="all"
license="openssl"
depends=""
depends_dev=""
makedepends="$depends_dev linux-headers"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${pkgname}-${pkgver}.tar.gz"

_builddir="${srcdir}/${pkgname}-${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 \
		|| return 1
	make || return 1
}

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

md5sums="147105631f34f18047c19483410db384  libressl-2.1.4.tar.gz"
sha256sums="e8e08535928774119a979412ee8e307444b7a1a42c8c47ac06ee09423ca9a04e  libressl-2.1.4.tar.gz"
sha512sums="534ac8cd438d2907025dcb7e24394e004058db33585d5aff3b594ea7494a866d05d5076f24836dcaf38e6fb27227019d55c26ed235f61da20a158c200f18c46e  libressl-2.1.4.tar.gz"