# Maintainer: Nikos Toutountzoglou pkgname=balena-etcher-appimage pkgver=1.18.7 pkgrel=1 pkgdesc="Flash OS images to SD cards & USB drives, safely and easily" arch=('x86_64') url="https://www.balena.io/etcher" license=('Apache') depends=('fuse2') provides=("balena-etcher-appimage=${pkgver}") conflicts=('balena-etcher-appimage' 'balena-etcher' 'balena-etcher-electron-bin') source=("https://github.com/balena-io/etcher/releases/download/v${pkgver}/balenaEtcher-${pkgver}-x64.AppImage") sha256sums=('f45c232c7891029ce0927c5dfcdcaf97413991171d15c4170e97b9e8716367a9') options=(!strip) # necessary otherwise the AppImage file in the package is truncated _image="$(basename "${source[0]}")" prepare() { cd "${srcdir}" chmod +x "${_image}" ./"${_image}" --appimage-extract sed -i -e "s/AppRun/\/usr\/bin\/balena-etcher/" "${srcdir}/squashfs-root/balena-etcher.desktop" cat > balena-etcher.sh <