compat-32/curl-32/Pkgfile

33 lines
947 B
Plaintext
Raw Normal View History

2017-02-15 09:15:13 +01:00
# Description: A tool for transfering files with URL syntax
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
2021-02-06 03:58:42 +01:00
# URL: https://curl.se/
2020-12-12 14:13:29 +01:00
# Depends on: curl openssl-32 zstd-32
# Optional: brotli-32
2017-02-15 09:15:13 +01:00
name=curl-32
2021-09-24 14:37:25 +02:00
version=7.79.1
2020-10-20 14:56:35 +02:00
release=1
2021-02-06 03:58:42 +01:00
source=(https://curl.se/download/${name%-*}-$version.tar.xz)
2017-02-15 09:15:13 +01:00
build() {
cd ${name%-*}-$version
2017-03-02 12:16:36 +01:00
prt-get isinst brotli && ! prt-get isinst brotli-32 && printf "\e[031mbrotli is detected on your system, please run:
2019-05-23 14:20:27 +02:00
prt-get depinst brotli-32
before continuing with curl-32.\033[0m\n" &&
exit 1
2017-02-15 09:15:13 +01:00
./configure --prefix=/usr \
2021-08-11 18:22:39 +02:00
--libdir=/usr/lib32 \
2017-02-15 09:15:13 +01:00
--enable-ipv6 \
2021-05-30 10:56:52 +02:00
--without-libidn2 \
2021-08-11 18:22:39 +02:00
--with-openssl \
2017-02-15 09:15:13 +01:00
--without-cyassl \
--enable-threaded-resolver \
--with-ca-bundle=/etc/ssl/cert.pem
make
make DESTDIR=$PKG install
2017-08-11 02:10:44 +02:00
rm -r $PKG/usr/{bin,include,share/man,share}
2017-02-15 09:15:13 +01:00
}