Commit 2509d810 authored by Ariadne Conill's avatar Ariadne Conill
Browse files

testing/libretls: make some adjustments to allow for replacing libtls-standalone

parent a2073f0b
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=libretls
pkgver=3.3.1
pkgrel=0
pkgdesc="Port of libtls from LibreSSL to OpenSSL. Aims to make the libtls API more easily and widely available"
pkgrel=1
pkgdesc="port of libtls from libressl to openssl"
arch="all"
url="https://git.causal.agency/libretls/"
license="ISC AND (BSD-3-Clause OR MIT)"
options="!check" # No test suite
makedepends="openssl-dev"
subpackages="$pkgname-doc $pkgname-static $pkgname-dev"
source="https://causal.agency/libretls/libretls-$pkgver.tar.gz"
source="https://causal.agency/libretls/libretls-$pkgver.tar.gz
test_program.c"
build() {
./configure --prefix=/usr
......@@ -21,4 +21,16 @@ package() {
make DESTDIR="$pkgdir" install
}
sha512sums="ddb4eb7c2c7e9cbb36ced17424ea0e08863488e6b3e18cd462ccc52b2eca685b5299f79ed6ba58ad4da2d742b61fa4857109a19137a1ee4c6cfdb48463080f4a libretls-3.3.1.tar.gz"
check() {
set -x
gcc -o test_program "$srcdir"/test_program.c -I"$builddir"/include -L"$builddir"/.libs -ltls $(pkgconf --cflags --libs openssl)
LD_LIBRARY_PATH="$builddir"/.libs ./test_program
set +x
}
sha512sums="
ddb4eb7c2c7e9cbb36ced17424ea0e08863488e6b3e18cd462ccc52b2eca685b5299f79ed6ba58ad4da2d742b61fa4857109a19137a1ee4c6cfdb48463080f4a libretls-3.3.1.tar.gz
71d36fe25c95a0a45497e3f699b01dddcaae9053dd1b1e2419df94272c47024cf6516c51c902129201061601b04a72551904b15a332a4cf53358983b5db73618 test_program.c
"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment