testing/composer: add trivial check()

This commit is contained in:
Andy Postnikov 2017-12-03 20:43:59 +02:00 committed by Jakub Jirutka
parent d7192739d7
commit 1dbb731628

View File

@ -8,7 +8,7 @@ pkgdesc="Dependency manager for PHP"
url="https://getcomposer.org/"
arch="noarch"
license="MIT"
depends="php5 php5-phar php5-json"
depends="php5 php5-phar php5-json php5-openssl php5-zlib"
makedepends=""
source="$pkgname-$_pkgver.phar::https://getcomposer.org/download/$_pkgver/$pkgname.phar"
@ -16,4 +16,9 @@ package() {
install -m 0755 -D "$srcdir"/$pkgname-$_pkgver.phar "$pkgdir"/usr/bin/$pkgname
}
check() {
cd "$srcdir"
php5 $pkgname-$_pkgver.phar -V
}
sha512sums="7d1b518d39054a5848709944769467a5d2c18f580162d5dcc7385a55b7ffedab4422375d9e38d85b432f041b43290deca5f32996b5eb5e97a515ac864153c5d8 composer-1.5.5.phar"