First commit
This commit is contained in:
commit
f1bc3e0153
2 changed files with 74 additions and 0 deletions
20
.SRCINFO
Normal file
20
.SRCINFO
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
pkgbase = openssl3-bin
|
||||||
|
pkgdesc = Toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols: install openssl-3* libraries without openssl-1* conflicts
|
||||||
|
pkgver = 3.0.5.r1329.gd272ef5372
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://www.openssl.org/
|
||||||
|
arch = i686
|
||||||
|
arch = x86_64
|
||||||
|
license = apache
|
||||||
|
makedepends = git
|
||||||
|
depends = glibc
|
||||||
|
depends = perl
|
||||||
|
optdepends = ca-certificates
|
||||||
|
provides = openssl=3.0.5.r1329.gd272ef5372
|
||||||
|
options = staticlibs
|
||||||
|
source = git+https://github.com/openssl/openssl.git
|
||||||
|
source = ca-dir.patch::https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/openssl/trunk/ca-dir.patch
|
||||||
|
sha256sums = SKIP
|
||||||
|
sha256sums = SKIP
|
||||||
|
|
||||||
|
pkgname = openssl3-bin
|
54
PKGBUILD
Normal file
54
PKGBUILD
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
# Maintainer: Bruno Silva <brunofernandes at ua dot pt>
|
||||||
|
|
||||||
|
pkgname=openssl3-bin
|
||||||
|
pkgver=3.0.5.r1329.gd272ef5372
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols: install openssl-3* libraries without openssl-1* conflicts"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="https://www.openssl.org/"
|
||||||
|
license=('apache')
|
||||||
|
depends=('glibc' 'perl')
|
||||||
|
makedepends=('git')
|
||||||
|
optdepends=('ca-certificates')
|
||||||
|
provides=("openssl=$pkgver")
|
||||||
|
options=('staticlibs')
|
||||||
|
source=("git+https://github.com/openssl/openssl.git"
|
||||||
|
"ca-dir.patch::https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/openssl/trunk/ca-dir.patch")
|
||||||
|
sha256sums=('SKIP'
|
||||||
|
'SKIP')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "openssl"
|
||||||
|
patch -Np0 -F100 -i "$srcdir/ca-dir.patch"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "openssl"
|
||||||
|
_tag=$(git tag -l --sort -v:refname | sed '/rc[0-9]*/d' | grep "openssl-" | head -n1)
|
||||||
|
_rev=$(git rev-list --count $_tag..HEAD)
|
||||||
|
_hash=$(git rev-parse --short HEAD)
|
||||||
|
printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^openssl-//'
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "openssl"
|
||||||
|
if [ "$CARCH" = "x86_64" ]; then
|
||||||
|
_target="linux-x86_64"
|
||||||
|
elif [ "$CARCH" = "i686" ]; then
|
||||||
|
_target="linux-x86"
|
||||||
|
fi
|
||||||
|
./Configure \
|
||||||
|
--prefix="/usr" \
|
||||||
|
--libdir="lib" \
|
||||||
|
--openssldir="/etc/ssl" \
|
||||||
|
"$_target" \
|
||||||
|
"-Wa,--noexecstack $CPPFLAGS $CFLAGS $LDFLAGS" \
|
||||||
|
shared
|
||||||
|
make depend
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
mkdir -p "${pkgdir}/usr/local/lib/"
|
||||||
|
cp -rf "${srcdir}"/openssl/lib*.so* "${pkgdir}"/usr/local/lib/
|
||||||
|
}
|
Loading…
Reference in a new issue