# Maintainer: Ali Molaei # Contributor: Fredy GarcĂ­a # Contributor: Andrew Stubbs pkgname=etcher-bin pkgver=1.5.28 pkgrel=1 pkgdesc="Flash OS images to SD cards & USB drives, safely and easily" arch=("x86_64") url="http://www.${pkgname%-bin}.io/" license=("apache") provides=("${pkgname%-bin}") conflicts=("${pkgname%-bin}") depends=("alsa-lib" "gconf" "gtk2" "libxss" "libxtst" "nss") optdepends=("libnotify: for notifications" "speech-dispatcher: for text-to-speech") source=("https://github.com/balena-io/${pkgname%-bin}/releases/download/v${pkgver}/balena-${pkgname%-bin}-electron_${pkgver}_amd64.deb") options=("!strip") sha256sums=("e24f9ef111807e94b42cdc6bc1b7a207987ae4b7d77c13b96f7a82e464eff311") build() { mkdir -p "${srcdir}/output" tar -xvf "${srcdir}/data.tar.xz" -C "${srcdir}/output" } package() { cp -r "${srcdir}/output/"* "${pkgdir}" install -d "${pkgdir}"/usr/bin ln -s /opt/balenaEtcher/balena-etcher-electron "${pkgdir}"/usr/bin/etcher }