#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
. $(dirname $0)/common.sh
erc unpack $TAR && cd kubo || fatal
install -m755 -D ipfs usr/bin/ipfs
rm -v ipfs install.sh README.md
mkdir -p usr/share/doc/$PRODUCT
mv LICENSE* usr/share/doc/$PRODUCT
VERSION="$(echo "$TAR" | sed -e 's|.*kubo_v||' -e 's|[-_].*||')"
PKGNAME=$PRODUCT-$VERSION
erc pack $PKGNAME.tar usr || fatal
return_tar $PKGNAME.tar
-
Vitaly Lipatov authored5dc4f372