aboutsummaryrefslogtreecommitdiffstats
path: root/community/yarn/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-06-07 23:27:42 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-06-07 23:28:19 +0200
commit52b6128df526b083cbb9e7796deb91a47753735d (patch)
tree01b520377d7951e525d587a259ab8f86ed44137f /community/yarn/APKBUILD
parent3d51e66748ac73ccbcf01d631e9c8162c194dcd2 (diff)
downloadaports-52b6128df526b083cbb9e7796deb91a47753735d.tar.bz2
aports-52b6128df526b083cbb9e7796deb91a47753735d.tar.xz
community/yarn: add basic check
Diffstat (limited to 'community/yarn/APKBUILD')
-rw-r--r--community/yarn/APKBUILD6
1 files changed, 5 insertions, 1 deletions
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"