APKBUILD 1.06 KB
Newer Older
TBK's avatar
TBK committed
1
# Contributor: TBK <alpine@jjtc.eu>
2
# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
TBK's avatar
TBK committed
3
4
pkgname=libretls
pkgver=3.3.1
5
pkgrel=2
6
pkgdesc="port of libtls from libressl to openssl"
TBK's avatar
TBK committed
7
8
9
arch="all"
url="https://git.causal.agency/libretls/"
license="ISC AND (BSD-3-Clause OR MIT)"
10
11
depends_dev="openssl-dev"
makedepends="$depends_dev"
TBK's avatar
TBK committed
12
subpackages="$pkgname-doc $pkgname-static $pkgname-dev"
13
14
source="https://causal.agency/libretls/libretls-$pkgver.tar.gz
	test_program.c"
TBK's avatar
TBK committed
15
16
17
18
19
20
21
22
23
24

build() {
	./configure --prefix=/usr
	make all
}

package() {
	make DESTDIR="$pkgdir" install
}

25
26
27
28
29
30
31
32
33
34
35
36
37
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
"