mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 18:47:13 +08:00
30 lines
758 B
Bash
30 lines
758 B
Bash
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
# Contributor: ice-man <icemanf@gmail.com>
|
|
|
|
pkgname=libssh2
|
|
pkgver=1.2.5
|
|
pkgrel=1
|
|
pkgdesc="A library implementing the SSH2 protocol as defined by Internet Drafts"
|
|
url="http://www.libssh2.org/"
|
|
arch=('i686' 'x86_64')
|
|
license=('BSD')
|
|
depends=('openssl')
|
|
makedepends=('zlib')
|
|
options=('!libtool')
|
|
source=("http://www.libssh2.org/download/$pkgname-$pkgver.tar.gz")
|
|
md5sums=('9c4ccd6a078c465179bb70fcf5a704d8')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
./configure --prefix=/usr || return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
install -Dm644 COPYING \
|
|
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
|
|
}
|