mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 18:12:15 +08:00
lib32-openssl: update to 1.0.1.g
This commit is contained in:
parent
f4edf96970
commit
5c839e3915
@ -5,7 +5,7 @@
|
||||
|
||||
_pkgbasename=openssl
|
||||
pkgname=lib32-$_pkgbasename
|
||||
_ver=1.0.1e
|
||||
_ver=1.0.1g
|
||||
# use a pacman compatible version scheme
|
||||
pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}}
|
||||
pkgrel=1
|
||||
@ -17,12 +17,23 @@ depends=(lib32-zlib $_pkgbasename=$pkgver)
|
||||
optdepends=('ca-certificates' perl gcc-multilib)
|
||||
options=('!makeflags')
|
||||
source=("https://www.openssl.org/source/${_pkgbasename}-${_ver}.tar.gz"
|
||||
"https://www.openssl.org/source/${_pkgbasename}-${_ver}.tar.gz.asc"
|
||||
'no-rpath.patch'
|
||||
'ca-dir.patch')
|
||||
md5sums=('66bf6f10f060d561929de96f9dfe5b8c'
|
||||
md5sums=('de62b43dfcd858e66a74bee1c834e959'
|
||||
'SKIP'
|
||||
'dc78d3d06baffc16217519242ce92478'
|
||||
'3bf51be3a1bbd262be46dc619f92aa90')
|
||||
|
||||
prepare() {
|
||||
cd $srcdir/$_pkgbasename-$_ver
|
||||
|
||||
# remove rpath: http://bugs.archlinux.org/task/14367
|
||||
patch -p0 -i $srcdir/no-rpath.patch
|
||||
# set ca dir to /etc/ssl by default
|
||||
patch -p0 -i $srcdir/ca-dir.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
export CC="gcc -m32"
|
||||
export CXX="g++ -m32"
|
||||
@ -30,28 +41,28 @@ build() {
|
||||
|
||||
cd $srcdir/$_pkgbasename-$_ver
|
||||
|
||||
# remove rpath: http://bugs.archlinux.org/task/14367
|
||||
patch -p0 -i $srcdir/no-rpath.patch
|
||||
# set ca dir to /etc/ssl by default
|
||||
patch -p0 -i $srcdir/ca-dir.patch
|
||||
# mark stack as non-executable: http://bugs.archlinux.org/task/12434
|
||||
./Configure linux-elf --prefix=/usr --openssldir=/etc/ssl --libdir=lib32 \
|
||||
shared zlib -Wa,--noexecstack
|
||||
./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib32 \
|
||||
shared zlib linux-elf "-Wa,--noexecstack ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}"
|
||||
|
||||
make MAKEDEPPROG="${CC}" depend
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd $srcdir/$_pkgbasename-$_ver
|
||||
# the test fails due to missing write permissions in /etc/ssl
|
||||
# revert this patch for make test
|
||||
#patch -p0 -R -i $srcdir/ca-dir.patch
|
||||
#make test
|
||||
#patch -p0 -i $srcdir/ca-dir.patch
|
||||
patch -p0 -R -i $srcdir/ca-dir.patch
|
||||
make test
|
||||
patch -p0 -i $srcdir/ca-dir.patch
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $srcdir/$_pkgbasename-$_ver
|
||||
make INSTALL_PREFIX=$pkgdir install
|
||||
make INSTALL_PREFIX=$pkgdir install_sw
|
||||
|
||||
rm -rf "${pkgdir}"/usr/{include,share,bin} "$pkgdir/etc"
|
||||
rm -rf "${pkgdir}"/{usr/{include,bin},etc}
|
||||
mkdir -p "$pkgdir/usr/share/licenses"
|
||||
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user