openssl 3.3.1-1

This commit is contained in:
xhaa123 2024-09-07 23:18:11 +08:00
parent dc35b7cfdb
commit 998fb904c6

43
openssl/PKGBUILD Normal file
View File

@ -0,0 +1,43 @@
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=openssl
pkgver=3.3.1
pkgrel=1
pkgdesc="The Open Source toolkit for Secure Sockets Layer and Transport Layer Security"
arch=('x86_64')
url="https://www.openssl.org/"
license=('Apache-2.0')
depends=('glibc')
makedepends=('perl')
backup=(etc/ssl/openssl.cnf)
source=(https://www.openssl.org/source/${pkgname}-${pkgver}.tar.gz)
sha256sums=(777cd596284c883375a2a7a11bf5d2786fc5413255efab20c50d6ffe6d020b7e)
build() {
cd ${pkgname}-${pkgver}
./config --prefix=/usr \
--openssldir=/etc/ssl \
--libdir=lib64 \
shared \
zlib-dynamic \
linux-x86_64
make
}
package() {
cd ${pkgname}-${pkgver}
sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
make DESTDIR=${pkgdir} MANSUFFIX=ssl install
mv -v ${pkgdir}/usr/share/doc/openssl ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
cp -vfr doc/* ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
}