snap4arduino.sh 733 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/sh

TAR="$1"
RETURNTARNAME="$2"
#VERSION="$3"

. $(dirname $0)/common.sh

PRODUCT="snap4arduino"
# Snap4Arduino_desktop-gnu-64_9.1.1
11
PKG="$(basename "$TAR" .gz | sed -e "s|Snap4Arduino_desktop-gnu-[36][24]\_|$PRODUCT-|")"
12 13 14 15 16

mkdir opt/
erc $TAR
mv -v Snap4Arduino* opt/$PRODUCT

Vitaly Lipatov's avatar
Vitaly Lipatov committed
17
erc a $PKG opt
18

Vitaly Lipatov's avatar
Vitaly Lipatov committed
19 20 21 22 23 24 25 26 27 28
cat <<EOF >$PKG.eepm.yaml
name: $PRODUCT
group: Development/Other
license: AGPL-3.0
url: https://snap4arduino.rocks/
summary: A modification of the Snap! visual programming language that lets you seamlessly interact with almost all versions of the Arduino board
description: A modification of the Snap! visual programming language that lets you seamlessly interact with almost all versions of the Arduino board.
EOF

return_tar $PKG