summaryrefslogtreecommitdiff
path: root/openssl11-32/Pkgfile
blob: ecd6ae24005add931a96552679aeb666da37f97c (plain)
    1 # Description: Secure Sockets Layer and Transport Layer Security tools
    2 # URL: https://www.openssl.org/
    3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
    4 
    5 name=openssl11-32
    6 version=1.1.1s
    7 release=1
    8 source=(https://www.openssl.org/source/${name:0:7}-$version.tar.gz \
    9 	no-rpath.patch openssl-1.0-versioned-symbols.patch)
   10 
   11 build() {
   12 	cd ${name:0:7}-$version
   13 	#export MAKEFLAGS="$MAKEFLAGS -j1"
   14 	export CC='gcc -m32'
   15 
   16 	./Configure --prefix=/usr \
   17 		--openssldir=/etc/ssl \
   18 		--libdir=lib32/openssl-1.1 \
   19 		shared \
   20 		enable-ec_nistp_64_gcc_128 linux-x86_64
   21 
   22 	sed -i "s|-O3|$CFLAGS|" Makefile
   23 
   24 	make depend
   25 	make
   26 	make DESTDIR=$PKG LIBDIR=lib32/openssl-1.1 MANDIR=/usr/share/man MANSUFFIX=ssl install_sw
   27 
   28 	find $PKG -name "*fips*" -delete
   29 	chmod -R +w $PKG
   30 
   31 	rm -r $PKG/usr/{include,bin}
   32 	mv "$PKG/usr/lib32/openssl-1.1/libcrypto.so.1.1" "$PKG/usr/lib32/"
   33 	mv "$PKG/usr/lib32/openssl-1.1/libssl.so.1.1" "$PKG/usr/lib32/"
   34 	ln -sf ../libssl.so.1.1 "$PKG/usr/lib32/openssl-1.1/libssl.so"
   35 	ln -sf ../libcrypto.so.1.1 "$PKG/usr/lib32/openssl-1.1/libcrypto.so"
   36 
   37 	# Update includedir in .pc files
   38 	sed -e 's|/include$|/include/openssl-1.1|' -i $PKG/usr/lib32/openssl-1.1/pkgconfig/*.pc
   39 }

Generated by cgit