aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php5-ssh2/APKBUILD
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2016-06-18 18:55:31 +0300
committerJakub Jirutka <jakub@jirutka.cz>2016-06-18 21:15:17 +0200
commitd2ce891ad820709784d0822d578fdcdb6bf03d4e (patch)
treec2c864efa96f230b93edda15aa436f91646c880e /testing/php5-ssh2/APKBUILD
parent5f74b23ad5816d7e720f2b7b8d8c62d9eef14615 (diff)
downloadaports-d2ce891ad820709784d0822d578fdcdb6bf03d4e.tar.bz2
aports-d2ce891ad820709784d0822d578fdcdb6bf03d4e.tar.xz
testing/php5-ssh2: rename abuild and upgrade to 0.13
Diffstat (limited to 'testing/php5-ssh2/APKBUILD')
-rw-r--r--testing/php5-ssh2/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/php5-ssh2/APKBUILD b/testing/php5-ssh2/APKBUILD
new file mode 100644
index 0000000000..d8bd3de877
--- /dev/null
+++ b/testing/php5-ssh2/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+pkgname=php5-ssh2
+_pkgreal=ssh2
+pkgver=0.13
+pkgrel=0
+pkgdesc="PHP extension provide bindings for the libssh2 library"
+url="http://pecl.php.net/package/ssh2"
+arch="all"
+license="PHP"
+depends=""
+pecldepends="php5-dev autoconf"
+makedepends="$pecldepends libssh2-dev"
+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/php5/conf.d || return 1
+ echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php5/conf.d/$_pkgreal.ini
+}
+
+md5sums="e35f8438b3f6177066166c8c1916f44e ssh2-0.13.tgz"
+sha256sums="cb2cb8ab840b5b36bcd8a8df06ea4a970a61e4cb3980f3c0ac5c913522e6c1be ssh2-0.13.tgz"
+sha512sums="c031e22853bf5cf8ee59dc5b99d9e7e60af1507a22e7d0a9e2f54b8f1758a03a6cea91c539e0f667d48ec66185fdc8a28c47e5a1e10a72220c0cb16b3948e1d0 ssh2-0.13.tgz"