git » openssl.git » main » tree

[main] / PKGBUILD

pkgname=openssl
pkgver=3.2.1
pkgrel=1
arch=('armv7h' 'aarch64')
license=('unknown')
source=("$pkgname-$pkgver.tar.gz")

build() {
	cd "$pkgname-$pkgver"
	./config --prefix=/usr         \
         --openssldir=/etc/ssl \
         --libdir=lib          \
         shared                \
         zlib-dynamic
	make
	sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
}

package() {
	cd "$pkgname-$pkgver"
	make MANSUFFIX=ssl DESTDIR="$pkgdir/" install
	mv -v "$pkgdir"/usr/share/doc/openssl "$pkgdir"/usr/share/doc/openssl-$pkgver
	cp -vfr doc/* "$pkgdir"/usr/share/doc/openssl-$pkgver
}
sha256sums=('83c7329fe52c850677d75e5d0b0ca245309b97e8ecbcfdc1dfdc4ab9fac35b39')