summaryrefslogtreecommitdiff
path: root/openssl1-32/Pkgfile
blob: 7a25b80901d26d2f27da9aace116383b1481ea15 (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 # Depends on: openssl1
    5 
    6 name=openssl1-32
    7 version=1.0.2u
    8 release=1
    9 source=(http://www.openssl.org/source/openssl-$version.tar.gz
   10 	no-rpath.patch openssl-1.0-versioned-symbols.patch)
   11 
   12 build() {
   13 	cd openssl-$version
   14 
   15 	patch -p0 -i $SRC/no-rpath.patch
   16 	patch -p1 -i $SRC/openssl-1.0-versioned-symbols.patch
   17 	export MAKEFLAGS="$MAKEFLAGS -j1"
   18 	export CC='gcc -m32'
   19 
   20 	./Configure \
   21 		--prefix='/usr' \
   22 		--libdir='lib32/openssl-1.0' \
   23 		--openssldir='/etc/ssl' \
   24 		shared no-ssl3-method linux-elf
   25 
   26 	make MAKEDEPPROG="${CC}" depend
   27 	make
   28 	make INSTALL_PREFIX=$PKG install_sw
   29 
   30 	rm -r $PKG/{etc,usr/{include,bin}}
   31 	mv $PKG/usr/lib32/{openssl-1.0/,}libcrypto.so.1.0.0
   32 	mv $PKG/usr/lib32/{openssl-1.0/,}libssl.so.1.0.0
   33 	ln -sf ../libssl.so.1.0.0 $PKG/usr/lib32/openssl-1.0/libssl.so
   34 	ln -sf ../libcrypto.so.1.0.0 $PKG/usr/lib32/openssl-1.0/libcrypto.so
   35 	sed -e 's|/include$|/include/openssl-1.0|' -i $PKG/usr/lib32/openssl-1.0/pkgconfig/*.pc
   36 }

Generated by cgit