From 52b6128df526b083cbb9e7796deb91a47753735d Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Wed, 7 Jun 2017 23:27:42 +0200 Subject: community/yarn: add basic check --- community/yarn/APKBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'community/yarn/APKBUILD') diff --git a/community/yarn/APKBUILD b/community/yarn/APKBUILD index d0735c7aee..e79b01ae0f 100644 --- a/community/yarn/APKBUILD +++ b/community/yarn/APKBUILD @@ -8,11 +8,15 @@ url="https://yarnpkg.com/" arch="noarch" license="BSD-2" depends="nodejs" -options="!check" source="https://yarnpkg.com/downloads/$pkgver/$pkgname-v$pkgver.tar.gz apk-install-method.patch" builddir="$srcdir/dist" +check() { + cd "$builddir" + ./bin/yarn --version +} + package() { local destdir="usr/share/node_modules/$pkgname" -- cgit v1.2.3