(package
    (name "libopenssl")
    (version "3.6.1")
    (homepage "https://openssl-library.org/")
    (dependencies perl)
    (src (tar
        (url "https://github.com/openssl/openssl/releases/download/openssl-3.6.1/openssl-3.6.1.tar.gz")
        (dir "openssl-3.6.1")
        (blake3 "90c0c093c5f09397f840cce374e4e6f56134727ac0867aaeccb5314aa3196544")))
    (build
        (shell "./Configure linux-x86_64 shared --prefix=/usr --libdir=lib")
        (make
            (do_install no))
        (shell "make install_sw")
        (shell "cp -v /usr/lib/libssl.so.3 /lib/x86_64-linux-gnu/libssl.so.3 || true")
        (shell "cp -v /usr/lib/libcrypto.so.3 /lib/x86_64-linux-gnu/libcrypto.so.3 || true")
        (shell "mkdir -p /usr/ssl")
        (shell "cp -v apps/openssl.cnf /usr/ssl/ || true")))
