aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-ssh2/APKBUILD
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2016-06-23 01:59:10 +0300
committerJakub Jirutka <jakub@jirutka.cz>2016-06-24 00:31:40 +0200
commit375900cdf8baf5161491756911dd884d51c19cca (patch)
tree71fcfb89282d85e17d527d9e9c2077b6c51cb3d4 /testing/php7-ssh2/APKBUILD
parent55615d5b780b6f525347931dd3c10065c0e46864 (diff)
downloadaports-375900cdf8baf5161491756911dd884d51c19cca.tar.bz2
aports-375900cdf8baf5161491756911dd884d51c19cca.tar.xz
testing/php7-ssh2: new aport
https://pecl.php.net/package/ssh2 An PHP extension that provides bindings for the libssh2 library
Diffstat (limited to 'testing/php7-ssh2/APKBUILD')
-rw-r--r--testing/php7-ssh2/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/php7-ssh2/APKBUILD b/testing/php7-ssh2/APKBUILD
new file mode 100644
index 0000000000..1afbb15bad
--- /dev/null
+++ b/testing/php7-ssh2/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Andy Postnikov <apostnikov@gmail.com>
+# Maintainer: Andy Postnikov <apostnikov@gmail.com>
+pkgname=php7-ssh2
+_pkgreal=ssh2
+pkgver=1.0
+pkgrel=0
+pkgdesc="PHP extension provide bindings for the libssh2 library"
+url="http://pecl.php.net/package/ssh2"
+arch="all"
+license="PHP"
+depends=""
+pecldepends="php7-dev autoconf"
+makedepends="$pecldepends libssh2-dev"
+source="$pkgname-$pkgver.tgz::http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ phpize7 || return 1
+ ./configure --prefix=/usr --with-php-config=php-config7 || return 1
+ make || return 1
+}
+
+package() {
+ cd "$builddir"
+
+ make INSTALL_ROOT="$pkgdir/" install || return 1
+
+ install -d "$pkgdir"/etc/php7/conf.d || return 1
+ echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
+}
+
+md5sums="1f84d2d0621933dce06eedeffe54ebd0 php7-ssh2-1.0.tgz"
+sha256sums="6a93891878b23904a773eb814fec7aea4ea00b4a412ee779c8535ed9c5e46ced php7-ssh2-1.0.tgz"
+sha512sums="9e21b4d5d640f595ff812c341387cd51917aed2df00bb8c94ff7e494953a3599dc1cbfa6f04248f3145fc1b097fcf6c066710c8f2a41e565a3f57cad999877f9 php7-ssh2-1.0.tgz"