new: lfs-12.2-systemd/openssl-3.3.1
This commit is contained in:
34
lfs-12.2-systemd/openssl-3.3.1.PKGBUILD
Normal file
34
lfs-12.2-systemd/openssl-3.3.1.PKGBUILD
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
pkgname=openssl
|
||||||
|
pkgver=3.3.1
|
||||||
|
pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security'
|
||||||
|
arch=('x86_64')
|
||||||
|
homepage='https://www.openssl.org'
|
||||||
|
license=('Apache-2.0')
|
||||||
|
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||||
|
urls=("https://www.openssl.org/source/${sources[0]}")
|
||||||
|
md5sums=("8a4342b399c18f870ca6186299195984")
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_build() {
|
||||||
|
./config --prefix=/usr \
|
||||||
|
--openssldir=/etc/ssl \
|
||||||
|
--libdir=lib \
|
||||||
|
shared \
|
||||||
|
zlib-dynamic
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
src_check() {
|
||||||
|
leaf_record_message "30-test_afalg.t is known to fail if no \`CONFIG_CRYPTO_USER_API_SKCIPHER\`. See LFS handbook."
|
||||||
|
HARNESS_JOBS=${PARALLEL_JOBS} make test
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
|
||||||
|
make DESTDIR="${pkgdir}" MANSUFFIX=ssl install
|
||||||
|
install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user