summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFantix King2012-09-22 17:02:49 +0800
committerFantix King2015-12-30 19:45:43 +0800
commitd40bb435967afebab3b6769d06777ab1ad0ba01a (patch)
tree1132be2fa1a31068fbb8ac734ceea45c6727c2f3
downloadaur-d40bb435967afebab3b6769d06777ab1ad0ba01a.tar.gz
1.4.2-1.1
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD40
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8c51ac5838c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Wed Dec 30 11:45:28 UTC 2015
+pkgbase = libx32-libssh2
+ pkgdesc = A library implementing the SSH2 protocol as defined by Internet Drafts (x32 ABI)
+ pkgver = 1.4.2
+ pkgrel = 1.1
+ url = http://www.libssh2.org/
+ arch = x86_64
+ license = BSD
+ makedepends = libx32-zlib
+ makedepends = gcc-multilib-x32
+ depends = libx32-openssl
+ depends = libssh2
+ provides = libssh2.so
+ options = !libtool
+ source = http://www.libssh2.org/download/libssh2-1.4.2.tar.gz
+ md5sums = 42e2b3796ac07fc1dbafc7abcc002cd3
+
+pkgname = libx32-libssh2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b70548e7d62
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Florian Pritz <flo@xssn.at>
+# $Id: PKGBUILD 71572 2012-05-29 20:53:33Z bluewind $
+# Contributor: Angel Velasquez <angvp@archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: ice-man <icemanf@gmail.com>
+
+_pkgbasename=libssh2
+pkgname=libx32-$_pkgbasename
+pkgver=1.4.2
+pkgrel=1.1
+pkgdesc="A library implementing the SSH2 protocol as defined by Internet Drafts (x32 ABI)"
+url="http://www.libssh2.org/"
+arch=('x86_64')
+license=('BSD')
+depends=('libx32-openssl' $_pkgbasename)
+provides=('libssh2.so')
+makedepends=('libx32-zlib' "gcc-multilib-x32")
+options=('!libtool')
+source=("http://www.libssh2.org/download/${_pkgbasename}-${pkgver}.tar.gz")
+md5sums=('42e2b3796ac07fc1dbafc7abcc002cd3')
+
+build() {
+ export CC="gcc -mx32"
+ export CXX="g++ -mx32"
+ export PKG_CONFIG_PATH="/usr/libx32/pkgconfig"
+
+ cd ${srcdir}/${_pkgbasename}-${pkgver}
+ ./configure --prefix=/usr --libdir=/usr/libx32
+ make
+}
+
+package() {
+ cd ${srcdir}/${_pkgbasename}-${pkgver}
+ make DESTDIR=${pkgdir} install
+
+ rm -rf "${pkgdir}"/usr/{include,share,bin,sbin}
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}