appdwarf/apps/mkeopkg

13 lines
321 B
Bash
Executable file

#!/bin/sh
APP=$(basename "$0" | sed 's/^mk//')
DIR=/tmp/appdwarf/$APP
mkdir -p "$DIR"
eopkg fc -o "$DIR" "$@"
parallel "unzip -op {} install.tar.xz | tar xJf - -C$DIR" ::: "$DIR"/*.eopkg
rm "$DIR"/*.eopkg
appdwarf -b "$DIR"/AppRun
sed -i 2,4s#/bin#/usr/bin# "$DIR"/AppRun
appdwarf "$DIR"
mv "$DIR".sh "$1"
rm -rf "$DIR"