openssl: fix for cross

This commit is contained in:
Ella Stanforth 2022-04-22 09:59:57 +00:00
parent bf36066fa8
commit f9839feeab
1 changed files with 10 additions and 3 deletions

View File

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