[arch-commits] Commit in libssh/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Fri Aug 28 11:03:18 UTC 2015
Date: Friday, August 28, 2015 @ 13:03:18
Author: arojas
Revision: 244959
Add docs subpackage (FS#46128)
Modified:
libssh/trunk/PKGBUILD
----------+
PKGBUILD | 25 ++++++++++++++++++-------
1 file changed, 18 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-08-28 10:17:50 UTC (rev 244958)
+++ PKGBUILD 2015-08-28 11:03:18 UTC (rev 244959)
@@ -4,9 +4,10 @@
# Contributor: ice-man <icemanf at gmail.com>
# Contributor: sergeantspoon <sergeantspoon at archlinux.us>
-pkgname=libssh
+pkgbase=libssh
+pkgname=(libssh libssh-docs)
pkgver=0.7.1
-pkgrel=1
+pkgrel=2
pkgdesc="Library for accessing ssh client services through C libraries"
url="http://www.libssh.org/"
license=('LGPL')
@@ -14,8 +15,8 @@
depends=('openssl')
makedepends=('cmake' 'cmocka' 'doxygen')
checkdepends=('openssh')
-source=(https://red.libssh.org/attachments/download/154/${pkgname}-${pkgver}.tar.xz
- https://red.libssh.org/attachments/download/153/${pkgname}-${pkgver}.tar.asc)
+source=(https://red.libssh.org/attachments/download/154/$pkgname-$pkgver.tar.xz
+ https://red.libssh.org/attachments/download/153/$pkgname-$pkgver.tar.asc)
md5sums=('bffc9dc548c3bae3a3afc5ac1654b272'
'SKIP')
validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider <asn at cryptomilk.org>
@@ -30,12 +31,13 @@
build() {
mkdir -p build
cd build
- cmake ../${pkgname}-${pkgver} \
+ cmake ../$pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_GSSAPI=OFF \
-DWITH_TESTING=ON
make
+ make doc
}
check() {
@@ -43,7 +45,16 @@
make test
}
-package(){
+package_libssh() {
cd build
- make DESTDIR="${pkgdir}" install
+ make DESTDIR="$pkgdir" install
}
+
+package_libssh-docs() {
+ pkgdesc="Documentation for libssh"
+ depends=()
+
+ mkdir -p "$pkgdir"/usr/share/doc/libssh
+ cp -r build/doc/html "$pkgdir"/usr/share/doc/libssh
+ cp -r build/doc/man "$pkgdir"/usr/share
+}
More information about the arch-commits
mailing list