diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-06-07 23:27:42 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-06-07 23:28:19 +0200 |
commit | 52b6128df526b083cbb9e7796deb91a47753735d (patch) | |
tree | 01b520377d7951e525d587a259ab8f86ed44137f /community/yarn/APKBUILD | |
parent | 3d51e66748ac73ccbcf01d631e9c8162c194dcd2 (diff) | |
download | aports-52b6128df526b083cbb9e7796deb91a47753735d.tar.bz2 aports-52b6128df526b083cbb9e7796deb91a47753735d.tar.xz |
community/yarn: add basic check
Diffstat (limited to 'community/yarn/APKBUILD')
-rw-r--r-- | community/yarn/APKBUILD | 6 |
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" |