aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/libssh/APKBUILD21
1 files changed, 15 insertions, 6 deletions
diff --git a/main/libssh/APKBUILD b/main/libssh/APKBUILD
index 0d40683add..cd2354dd76 100644
--- a/main/libssh/APKBUILD
+++ b/main/libssh/APKBUILD
@@ -1,28 +1,36 @@
# Contributor: Carlo Landmeter
# Maintainer:
pkgname=libssh
-pkgver=0.4.5
+pkgver=0.4.6
pkgrel=0
pkgdesc="Library for accessing ssh client services through C libraries"
url="http://www.libssh.org/"
license="LGPL"
depends=
-makedepends="openssl-dev cmake"
+makedepends="openssl-dev cmake doxygen"
subpackages="$pkgname-dev"
-source="http://www.libssh.org/files/${pkgname}-${pkgver}.tar.gz"
+source="http://www.libssh.org/files/${pkgname}-${pkgver}.tar.gz
+ libssh-ccache.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
- # apply patches here
+ for i in $source; do
+ case $i in
+ *.patch)
+ msg "Applying $i"
+ patch -p1 -i "$srcdir"/$i || return 1
+ ;;
+ esac
+ done
}
build() {
cd "$srcdir"
mkdir build && cd build
- cmake ../${pkgname}-${pkgver} \
+ cmake "$srcdir"/${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make || return 1
@@ -33,4 +41,5 @@ package() {
make DESTDIR="$pkgdir" install
}
-md5sums="156bf2402f3251b50b15fe8598c9031d libssh-0.4.5.tar.gz"
+md5sums="9efdc8911fdb150fb16500c2fbe4ef2e libssh-0.4.6.tar.gz
+5b4b75e0d7e8d78185bed79c08e45f90 libssh-ccache.patch"