diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2016-01-25 19:17:16 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-02-02 14:43:12 +0000 |
commit | abedc40f444fd06c7f7185ed1066cb31926406b8 (patch) | |
tree | 6917f1b1a78229972b7e43c38c496887dcd25864 /testing/php-ssh2 | |
parent | 95cde9993a9aa16d685de6b25e354cc84bf8943a (diff) | |
download | aports-abedc40f444fd06c7f7185ed1066cb31926406b8.tar.bz2 aports-abedc40f444fd06c7f7185ed1066cb31926406b8.tar.xz |
testing/php-ssh2: new aport
PHP bindings for the libssh2 library
https://pecl.php.net/package/ssh2
Diffstat (limited to 'testing/php-ssh2')
-rw-r--r-- | testing/php-ssh2/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/php-ssh2/APKBUILD b/testing/php-ssh2/APKBUILD new file mode 100644 index 0000000000..6713e64fb6 --- /dev/null +++ b/testing/php-ssh2/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Valery Kartel <valery.kartel@gmail.com> +# Maintainer: Valery Kartel <valery.kartel@gmail.com> +pkgname=php-ssh2 +_pkgreal=ssh2 +pkgver=0.12 +pkgrel=0 +pkgdesc="PHP extension provide bindings for the libssh2 library" +url="http://pecl.php.net/package/ssh2" +arch="all" +license="PHP" +depends= +pecldepends="php-dev autoconf" +makedepends="$pecldepends libssh2-dev" +install="" +subpackages="" +source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz" + +_builddir="$srcdir"/$_pkgreal-$pkgver + +build() { + cd "$_builddir" + phpize || return 1 + ./configure --prefix=/usr || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make INSTALL_ROOT="$pkgdir/" install || return 1 + install -d "$pkgdir"/etc/php/conf.d || return 1 + echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php/conf.d/$_pkgreal.ini +} + +md5sums="409b91678a842bb0ff56f2cf018b9160 ssh2-0.12.tgz" +sha256sums="600c82d2393acf3642f19914f06a7afea57ee05cb8c10e8a5510b32188b97f99 ssh2-0.12.tgz" +sha512sums="e48f8051f9234841bb0fc10594dcd90badf2d880d75c4bd59f847e3d4276e9fdd3fe71c1c01c07fb9f552cec470f3dbac6ae1db4d33e5793d3988ea5bac1d5bd ssh2-0.12.tgz" |