You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
306 B

#!/bin/sh
version=$(rpm -q --specfile --qf='%{version}\n' ~/rpmbuild/SPECS/nodejs-yarn.spec | head -n1)
wget https://github.com/yarnpkg/yarn/archive/v$version.tar.gz
tar -zxf v$version.tar.gz
cd yarn-$version
npm install && cd .. && tar -zcf ~/rpmbuild/SOURCES/yarn-v$version-bundled.tar.gz yarn-$version