diff options
author | Chocobo1 | 2017-08-19 00:42:03 +0800 |
---|---|---|
committer | Chocobo1 | 2017-08-19 01:10:52 +0800 |
commit | 56eb0e8dec0578a283a0057408b50a0a453c901c (patch) | |
tree | baeae2537e3cb2934aae426497adf36a71dec9c3 | |
download | aur-56eb0e8dec0578a283a0057408b50a0a453c901c.tar.gz |
newpkg: libssh-git 0.3.0.r2774.gb9b89ef7-1
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..66ffa928a47b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = libssh-git + pkgdesc = Multiplatform C library implementing the SSHv2 and SSHv1 protocol on client and server side + pkgver = 0.3.0.r2774.gb9b89ef7 + pkgrel = 1 + url = https://www.libssh.org/ + arch = i686 + arch = x86_64 + license = LGPL + makedepends = git + makedepends = cmake + makedepends = cmocka + depends = glibc + depends = openssl + depends = zlib + provides = libssh + conflicts = libssh + source = git+git://git.libssh.org/projects/libssh.git + sha256sums = SKIP + +pkgname = libssh-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4bba8a784de0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=libssh-git +pkgver=0.3.0.r2774.gb9b89ef7 +pkgrel=1 +pkgdesc="Multiplatform C library implementing the SSHv2 and SSHv1 protocol on client and server side" +arch=('i686' 'x86_64') +url="https://www.libssh.org/" +license=('LGPL') +depends=('glibc' 'openssl' 'zlib') +makedepends=('git' 'cmake' 'cmocka') +provides=('libssh') +conflicts=('libssh') +source=("git+git://git.libssh.org/projects/libssh.git") +sha256sums=('SKIP') + + +prepare() { + cd "libssh" + + mkdir -p "build" +} + +pkgver() { + cd "libssh" + + git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "libssh/build" + + cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=Release -DWITH_TESTING=ON -DWITH_ZLIB=ON ../ + make +} + +check() { + cd "libssh/build" + + make test +} + +package() { + cd "libssh/build" + + make DESTDIR="$pkgdir" install +} |