aboutsummaryrefslogtreecommitdiff
path: root/repos/core/curl/abuild
blob: c173be143a1cb683f0da45fc4604ab15f129f5d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name=curl
version=8.12.0
release=1
source="https://$name.se/download/$name-$version.tar.xz"
build_opt="
	--with-openssl
	--enable-threaded-resolver
	--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
	--without-brotli
	--without-libidn2
	--without-libpsl
	--without-librtmp
	--without-nghttp2
	--without-zstd
	--disable-manual"

build() {
	mkdir bin
	echo "#!/bin/sh
	/bin/true
	" > bin/perl
	chmod +x bin/perl
	export PATH=$PWD/bin:$PATH
	
	./configure \
		--prefix=/usr \
		--with-openssl \
		--enable-threaded-resolver \
		--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
		--without-brotli \
		--without-libidn2 \
		--without-libpsl \
		--without-librtmp \
		--without-nghttp2 \
		--without-zstd \
		--disable-ldap \
		--disable-manual \
		--disable-ares
	make
	make install
}