44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# 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}
|
|
}
|