summaryrefslogblamecommitdiff
path: root/user/libssh2/APKBUILD
blob: cb6e11f9769842a34e724932a5c7cec360ad3e00 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                         
              
               
            
        

                                           
          

                                                                      
                                       

                                                            
 














                                                          




                      




                                      
                                                                                                                                                                   
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: 
pkgname=libssh2
pkgver=1.8.2
pkgrel=0
pkgdesc="Library for accessing SSH servers"
url="https://libssh2.org/"
arch="all"
options="!check"  # Requires deprecated UsePrivilegeSeparation option.
license="BSD-3-Clause"
makedepends_host="openssl-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://libssh2.org/download/libssh2-$pkgver.tar.gz"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-libssl-prefix="${CBUILDROOT}"/usr \
		--disable-rpath
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="390ab4ad93bb738415ec11a6eb92806c9b9e9e5d8ee7c442d841a58b4292c1c447a9bc99e153ba464e2e11f9c0d1913469303598c3046722d1ae821991e8cb93  libssh2-1.8.2.tar.gz"