From cf0d8ebd6b65caa7ef841e3f94814cfcca2b57d6 Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Sat, 27 Mar 2021 12:45:39 -0700 Subject: [PATCH] Add cointop recipe --- recipes/cointop.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 recipes/cointop.yml diff --git a/recipes/cointop.yml b/recipes/cointop.yml new file mode 100644 index 00000000..e0f4abb1 --- /dev/null +++ b/recipes/cointop.yml @@ -0,0 +1,23 @@ +app: cointop + +ingredients: + script: + - LOGO_URL="https://raw.githubusercontent.com/miguelmota/cointop/master/assets/logos/cointop_icon.png" + - TAR_URL=$(wget -q "https://api.github.com/repos/miguelmota/cointop/releases/latest" -O - | grep -E "https.*cointop.*linux_amd64.tar.gz" | cut -d'"' -f4) + - wget -c $TAR_URL + - echo $TAR_URL | cut -d/ -f8 > VERSION + - tar zxvf cointop*tar.gz + - wget $LOGO_URL -O cointop.png + +script: + - cp ../cointop usr/bin + - cp ../cointop.png . + - cat > cointop.desktop <