summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67418ffb6788a63047e397988eb9e67a7351af3f (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
# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
# Contributor: jsteel <mail at jsteel dot org>
# Please report issues at https://github.com/sanduhrs/arch-aur-php-ssh

_pkgname=php-ssh
pkgname=${_pkgname}
pkgver=1.4.1
pkgrel=1
pkgdesc="An SSH2 extension for PHP"
url="http://pecl.php.net/package/ssh2"
license=('PHP')
arch=('i686' 'x86_64')
depends=('php' 'openssh')
makedepends=('git')
provides=('php-ssh')
conflicts=('php-ssh')
install=${_pkgname}.install
source=("${pkgname}::git+https://github.com/php/pecl-networking-ssh2.git#tag=${pkgver}")
sha512sums=('SKIP')

build() {
  cd "${srcdir}/${pkgname}"
  phpize
  ./configure --prefix=/usr --with-ssh2
  make
}

package() {
  cd "${srcdir}/${pkgname}"
  echo ';extension=ssh2.so' > ssh2.ini
  install -Dm644 ssh2.ini "${pkgdir}/etc/php/conf.d/ssh2.ini"
  make install INSTALL_ROOT="${pkgdir}/"
}