makedepends=(lbzip2)

description="Flash OS images to SD cards & USB drives, safely and easily."
url="https://etcher.io/"
packager="Great-OS Team"
maintainer="Great-OS Team"

name=etcher
version=2.1.6

source=(https://github.com/balena-io/etcher/releases/download/v$version/balena-etcher_${version}_amd64.deb
        etcher)

build() {
  mkdir -p output
  tar -xvf data.tar.zst -C output
}

package() {
  cp -r output/* $PKG
  install -d $PKG/usr/bin
  install -Dm755 etcher $PKG/usr/bin/etcher
}
