summaryrefslogblamecommitdiff
path: root/user/neon/APKBUILD
blob: 0dcfa20c2dd8f157fce5fc3372d7f3ac71f879eb (plain) (tree)
1
2
3
4
5
6
7
8
9
                                      
            

             
                                                           
                                    
          
                   
                         
                                            
                                          
                                       
                                                                  

          












                                                                   
                                                      


         


                                           



                  

                                      
                                                                                                                                                                 
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=neon
pkgver=0.32.2
pkgrel=0
pkgdesc="HTTP and WebDAV client library with a C interface"
url="https://notroj.github.io/neon/"
arch="all"
license="LGPL-2.0+"
depends="ca-certificates"
depends_dev="expat-dev openssl-dev zlib-dev"
makedepends="$depends_dev xmlto cmd:which"
subpackages="$pkgname-dev $pkgname-doc"
source="https://notroj.github.io/$pkgname/$pkgname-$pkgver.tar.gz"

build () {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-ssl \
		--with-expat \
		--without-gssapi \
		--disable-nls \
		--enable-shared \
		--disable-static \
		--enable-threadsafe-ssl=posix \
		--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
	make
	make docs # FIXME: does not happen by default?
}

check() {
	sed -i test/ssl.c \
		-e '/T(dname_readable)/d' \
		;
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="2580a3c8c3cf4aff2d399f72a721ccfb4e68434ef92da4af8103c126812d779b9fbe5cafbab512c79f4365bbb3d3eac61568748136470e86f7aa7b98b27053c8  neon-0.32.2.tar.gz"