iglunix/old/libressl/build.sh

50 lines
858 B
Bash
Raw Normal View History

2021-04-18 11:01:27 +00:00
pkgver=3.3.2
2021-01-17 19:15:45 +00:00
pkgname=libressl
pkgrel=1
bad=""
ext="doc:dev"
fetch() {
2021-04-18 11:01:27 +00:00
curl -L "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
2021-01-17 19:15:45 +00:00
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
mkdir build
cd build
cmake -G Ninja ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DOPENSSLDIR=/etc/ssl
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
rm -r $pkgdir/usr/share
rm -r $pkgdir/usr/include
rm -r $pkgdir/usr/lib/pkgconfig
}
2021-01-31 11:09:14 +00:00
package_dev() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
rm -r $pkgdir/etc
rm -r $pkgdir/usr/share
rm -r $pkgdir/usr/bin
rm $pkgdir/usr/lib/*.so
rm $pkgdir/usr/lib/*.so.*
2021-01-17 19:15:45 +00:00
samu
}
license() {
cd $pkgname-$pkgver
cat COPYING
}