X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 4F8B7DC012D for ; Mon, 7 Sep 2015 08:15:59 +0000 (UTC) Received: from yavin4.bsod.eu (yavin4.bsod.eu [188.164.131.106]) by mail.alpinelinux.org (Postfix) with ESMTP id EE2B5DC00DE for ; Mon, 7 Sep 2015 08:15:58 +0000 (UTC) Received: from yavin4.bsod.eu (hoth.bsod.eu [127.0.0.1]) by yavin4.bsod.eu (Postfix) with ESMTP id 910481001C03; Mon, 7 Sep 2015 08:15:56 +0000 (UTC) Received: from yavin4.bsod.eu (hoth.bsod.eu [127.0.0.1]) by yavin4.bsod.eu (Postfix) with ESMTP id 53AE61001C00; Mon, 7 Sep 2015 08:15:56 +0000 (UTC) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 07 Sep 2015 10:15:56 +0200 From: Francesco Colista To: Raman Shukhau Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] testing/php-ssh2: new aport In-Reply-To: <1441477875-26197-1-git-send-email-roman.shuhov@gmail.com> References: <1441477875-26197-1-git-send-email-roman.shuhov@gmail.com> Message-ID: <7362293a744c05bdddcbbaa647f8ae23@bsod.eu> X-Sender: fcolista@alpinelinux.org User-Agent: Roundcube Webmail/1.1.2 X-Virus-Scanned: ClamAV using ClamSMTP Il 2015-09-05 20:31 Raman Shukhau ha scritto: > From: roman-shuhov > > http://pecl.php.net/package/ssh2 > SSH2 extension for PHP Hello Raman, thanks for your contribution. Patch applies, but package does not build because libssh2-dev is missing. Besides that, there are some aspects that can be improved. Please see the inline comments: > +source="http://pecl.php.net/get/ssh2-0.12.tgz ssh2.ini" Rather than using static name and version, is better to use variables. In this way, it's enough to change the package version only in one place. Specifically > pkgname=php-ssh2 > pkgver=0.12 This two variables can be used in the source entry. Just pay attention that the package is called "php-ssh2", while the link is ssh2. This can be also "optimized" by using: _pkgname=${pkgname/*-/} In this way, you can have the source file like: > +source="http://pecl.php.net/get/$_pkgname-$pkgver.tgz ssh2.ini" > + cd "$srcdir/ssh2-$pkgver" This can be improved by using _builddir variable, by setting: _builddir = "$srcdir/"/$_pkgname-$pkgver and then in build() and prepare() function you can simply put: cd $_builddir Can you please resend the patch with the correct dependencies? Thanks! -- :: Francesco Colista :: Alpine Linux Infrstraucture :: http://www.alpinelinux.org --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---