aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libretls/APKBUILD
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2021-05-03 17:24:29 -0600
committerAriadne Conill <ariadne@dereferenced.org>2021-05-03 17:25:19 -0600
commit2509d810525e778ee719b9202c2c51ff74fe2393 (patch)
tree7511a4616fcd0f37896a8853e50b67f77bb5993e /testing/libretls/APKBUILD
parenta2073f0bf0246716158d22fbcd7a6fcff84ac2bc (diff)
downloadaports-2509d810525e778ee719b9202c2c51ff74fe2393.tar.gz
aports-2509d810525e778ee719b9202c2c51ff74fe2393.tar.bz2
aports-2509d810525e778ee719b9202c2c51ff74fe2393.tar.xz
testing/libretls: make some adjustments to allow for replacing libtls-standalone
Diffstat (limited to 'testing/libretls/APKBUILD')
-rw-r--r--testing/libretls/APKBUILD24
1 files changed, 18 insertions, 6 deletions
diff --git a/testing/libretls/APKBUILD b/testing/libretls/APKBUILD
index 8cd8034981..f2e51d3c6e 100644
--- a/testing/libretls/APKBUILD
+++ b/testing/libretls/APKBUILD
@@ -1,16 +1,16 @@
# 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
+"