aboutsummaryrefslogtreecommitdiffstats
path: root/testing/composer
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2017-12-03 20:43:59 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-12-04 22:57:03 +0100
commit1dbb73162873d54ab8d6f9864012fcdcdab6e7f6 (patch)
treef95fe391e699053cd98d69c8b4269c19309ebc7d /testing/composer
parentd7192739d75b600ecd75d13faa7a2f6609c8db8d (diff)
downloadaports-1dbb73162873d54ab8d6f9864012fcdcdab6e7f6.tar.bz2
aports-1dbb73162873d54ab8d6f9864012fcdcdab6e7f6.tar.xz
testing/composer: add trivial check()
Diffstat (limited to 'testing/composer')
-rw-r--r--testing/composer/APKBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/testing/composer/APKBUILD b/testing/composer/APKBUILD
index e654c5464e..8c750abf63 100644
--- a/testing/composer/APKBUILD
+++ b/testing/composer/APKBUILD
@@ -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"