aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libressl
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-15 21:19:12 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-08-15 21:24:19 +0200
commita318101002cbdb0d93d04f7cd499f3a41e3d59e3 (patch)
treed6d86a4848aa087dd6b8878099f0e81baaa4c62c /testing/libressl
parente263d80aa09433f46f5715696999a38c27b2cfc8 (diff)
downloadaports-a318101002cbdb0d93d04f7cd499f3a41e3d59e3.tar.bz2
aports-a318101002cbdb0d93d04f7cd499f3a41e3d59e3.tar.xz
testing/libressl: improve abuild
Diffstat (limited to 'testing/libressl')
-rw-r--r--testing/libressl/APKBUILD42
1 files changed, 14 insertions, 28 deletions
diff --git a/testing/libressl/APKBUILD b/testing/libressl/APKBUILD
index 404f2a66b9..52af44d894 100644
--- a/testing/libressl/APKBUILD
+++ b/testing/libressl/APKBUILD
@@ -4,32 +4,20 @@
pkgname=libressl
pkgver=2.2.6
pkgrel=1
-pkgdesc="version of the TLS/crypto stack forked from OpenSSL"
+pkgdesc="Version of the TLS/crypto stack forked from OpenSSL"
url="http://www.libressl.org/"
arch="all"
license="custom"
depends="$pkgname-libcrypto=$pkgver-r$pkgrel $pkgname-libssl=$pkgver-r$pkgrel"
-depends_dev=""
makedepends="linux-headers"
-install=""
replaces="openssl"
-subpackages="$pkgname-libcrypto $pkgname-libssl $pkgname-libtls
+subpackages="$pkgname-libcrypto:_libs $pkgname-libssl:_libs $pkgname-libtls:_libs
$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
-}
+source="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -42,30 +30,28 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
dev() {
- default_dev
+ default_dev || return 1
replaces="openssl-dev"
}
_libs() {
- pkgdesc="libressl $1 library"
- depends=
+ local name="${subpkgname#$pkgname-}"
+ pkgdesc="libressl $name library"
+ depends=""
+
mkdir -p "$subpkgdir"/lib "$subpkgdir"/usr/lib
- for i in "$pkgdir"/usr/lib/$1.so.*; do
- mv $i "$subpkgdir"/lib/
- ln -s ../../lib/${i##*/} "$subpkgdir"/usr/lib/${i##*/}
+ local f; for f in "$pkgdir"/usr/lib/$name.so.*; do
+ mv $f "$subpkgdir"/lib/
+ ln -s ../../lib/${f##*/} "$subpkgdir"/usr/lib/${f##*/}
done
}
-libcrypto() { _libs libcrypto; }
-libssl() { _libs libssl; }
-libtls() { _libs libtls; }
-
md5sums="d91d57161bcf40b22f78190224c4f028 libressl-2.2.6.tar.gz"
sha256sums="1ee19994cffd047d40f63ba149115dba18a681b0cc923beec301bf424b58d64f libressl-2.2.6.tar.gz"
sha512sums="41e29431ad9e8b18e2dbc30fe9df1d7be3ca372d5d7757b5b01f8904515bafd5333446957fbc9874f64f384dae56cf6bf29d6808a7c0df1836b55ea64804a4bf libressl-2.2.6.tar.gz"