summaryrefslogblamecommitdiff
path: root/system/curl/APKBUILD
blob: 41b7f58dd15eeee70ae1a995c47ab85e70232a2c (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                      
                                      
            
             
        
                                            
                          


                         
                        

                                                   
                                                              

                                                            
         





                                       
                                


                                   

                              
            


         
                                                

                                                 


           
                                      







                                                         
                                                                                                                                                                 
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=curl
pkgver=7.79.1
pkgrel=0
pkgdesc="A URL retrival utility and library"
url="https://curl.haxx.se"
arch="all"
license="MIT"
depends="ca-certificates"
makedepends_build="perl"
makedepends_host="zlib-dev openssl-dev libssh2-dev"
makedepends="$makedepends_build $makedepends_host"
source="https://curl.haxx.se/download/$pkgname-$pkgver.tar.xz"
subpackages="$pkgname-dbg $pkgname-doc $pkgname-dev libcurl"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-ipv6 \
		--enable-unix-sockets \
		--with-libssh2 \
		--without-libidn \
		--without-libidn2 \
		--disable-ldap \
		--with-pic \
		--with-openssl
	make
}

check() {
	# -p: print log contents on test failure
	# ignore:  557: fails under valgrind only
	make check TFLAGS='-p ~557'
}

package() {
	make DESTDIR="$pkgdir" install
}

libcurl() {
	pkgdesc="The multiprotocol file transfer library"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/lib "$subpkgdir"/usr
}

sha512sums="1edb71647a7f4dbb070baf1a019b4751aefeda793ff523c504410bb5cc74e5bffc52f20dd889697d1585f9ca3c4e81b1a9caadd182c30c8358ffd25f33e4db4d  curl-7.79.1.tar.xz"