aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-ssh2/APKBUILD
blob: 0ea218860111ddd8e0faf13564eaada691e75e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-ssh2
_pkgreal=ssh2
pkgver=1.1.2
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
}

sha512sums="36793191448745b8a9b3cc628fe9fb431480792c7a2ff0bf2eccd58cda1cf944933be1d301c455d4a6f3dabf7e04ffef248bc402a8ff99bfafcba0deddb25c36  php7-ssh2-1.1.2.tgz"