summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/libssh2-static/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/libre/libssh2-static/PKGBUILD b/libre/libssh2-static/PKGBUILD
new file mode 100644
index 000000000..f3827fcbb
--- /dev/null
+++ b/libre/libssh2-static/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+# based of libssh2
+
+_pkgname=libssh2
+pkgname=libssh2-static
+pkgver=1.7.0
+pkgrel=2
+pkgdesc="A library implementing the SSH2 protocol as defined by Internet Drafts (static libraries only)"
+url="http://www.libssh2.org/"
+arch=('i686' 'x86_64' 'armv7h')
+license=('BSD')
+depends=('openssl-static' 'libssh2')
+makedepends=('zlib')
+options=('staticlibs')
+validpgpkeys=('914C533DF9B2ADA2204F586D78E11C6B279D5C91') # Daniel Stenberg
+source=("http://www.libssh2.org/download/$_pkgname-$pkgver.tar.gz"{,.asc})
+md5sums=('b01662a210e94cccf2f76094db7dac5c'
+ 'SKIP')
+
+build() {
+ cd "$_pkgname-$pkgver"
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+
+ # remove conflicting files
+ rm -vr ${pkgdir}/usr/{include,lib/pkgconfig,share}
+ rm -v ${pkgdir}/usr/lib/lib*.so*
+}