openssl: fix for cross

This commit is contained in:
Ella Stanforth 2022-04-22 09:59:57 +00:00
parent bf36066fa8
commit f9839feeab

View file

@ -8,10 +8,13 @@ fetch() {
tar -xf $pkgname-$pkgver.tar.xz tar -xf $pkgname-$pkgver.tar.xz
} }
PREFIX=/usr
[ -z "$FOR_CROSS" ] || PREFIX=$FOR_CROSS_DIR
build() { build() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
./Configure \ ./Configure \
--prefix=/usr \ --prefix=$PREFIX \
--openssldir=/etc/ssl \ --openssldir=/etc/ssl \
--libdir=lib \ --libdir=lib \
linux-generic64 \ linux-generic64 \
@ -28,8 +31,12 @@ build() {
package() { package() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
make install_sw DESTDIR=$pkgdir make install_sw DESTDIR=$pkgdir
if [ -z "$FOR_CROSS" ]; then
install -d $pkgdir/usr/sbin install -d $pkgdir/usr/sbin
install -Dm755 ../../update-ca.sh $pkgdir/usr/sbin/update-ca install -Dm755 ../../update-ca.sh $pkgdir/usr/sbin/update-ca
else
rm -rf $pkgdir/$PREFIX/bin
fi
} }
backup() { backup() {