# Maintainer: zxp19821005 pkgname=go-hass-agent-bin pkgver=9.3.0 pkgrel=1 pkgdesc="A Home Assistant, native app integration for desktop/laptop devices." arch=( 'aarch64' 'armv7h' 'x86_64' ) url="https://github.com/joshuar/go-hass-agent" license=('MIT') provides=("${pkgname%-bin}=${pkgver}") conflicts=("${pkgname%-bin}") depends=( 'libx11' 'libglvnd' ) source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::${url}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_arm64.deb") source_armv7h=("${pkgname%-bin}-${pkgver}-armv7h.deb::${url}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_arm.deb") source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.deb::${url}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_amd64.deb") sha256sums_aarch64=('5cf8bee99961b86e8e682acaac38e034c41890ca5010d3c30e349ba8fe96a675') sha256sums_armv7h=('18f4e83a99ffa27f2ff223de867ef283a7f540493b8d6f3299a408a397a79027') sha256sums_x86_64=('59f2d48400da1151ef5195d587763cfd52fcf4f1633ec2934947771a9f52d4fe') build() { bsdtar -xf "${srcdir}/data."* } package() { install -Dm755 "${srcdir}/usr/bin/${pkgname%-bin}" -t "${pkgdir}/usr/bin" install -Dm644 "${srcdir}/usr/lib/systemd/user/${pkgname%-bin}.service" -t "${pkgdir}/usr/lib/systemd/user" install -Dm644 "${srcdir}/usr/share/pixmaps/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps" install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" install -Dm644 "${srcdir}/usr/share/licenses/${pkgname%-bin}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" }