# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Arsen Musyaelyan <arsen@arsenm.dev>

pkgname='itd-bin'
pkgver=1.0.0
pkgrel=1
pkgdesc='Companion daemon for the InfiniTime firmware on the PineTime smartwatch'
url='https://gitea.arsenm.dev/Arsen6331/itd'
arch=('aarch64' 'armv6h' 'i686' 'x86_64')
license=('GPLv3')
provides=('itd' 'itctl')
conflicts=('itd' 'itctl')
depends=('dbus' 'bluez' 'libpulse')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://gitea.arsenm.dev/Arsen6331/itd/releases/download/v1.0.0/itd_1.0.0_linux_aarch64.tar.gz")
sha256sums_aarch64=('8f0bb0b83f0f6ec34505237bda8a03be5a9efd792ecb012ae8657ceecd63ab44')

source_armv6h=("${pkgname}_${pkgver}_armv6h.tar.gz::https://gitea.arsenm.dev/Arsen6331/itd/releases/download/v1.0.0/itd_1.0.0_linux_armv6.tar.gz")
sha256sums_armv6h=('0e7b62312ee360678dcc125e2f6489f559e5d7af2b605d029639c6be668aa437')

source_i686=("${pkgname}_${pkgver}_i686.tar.gz::https://gitea.arsenm.dev/Arsen6331/itd/releases/download/v1.0.0/itd_1.0.0_linux_i386.tar.gz")
sha256sums_i686=('5ba134ba993c470a0d5a5d5c4a67c715aa308131008e1eab3e155b788c3806a3')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://gitea.arsenm.dev/Arsen6331/itd/releases/download/v1.0.0/itd_1.0.0_linux_x86_64.tar.gz")
sha256sums_x86_64=('7ae13460e9b911827355c23ca77a0c59a7099c9988e61366b84a797af682405a')

package() {
  # binaries
  install -Dm755 "./itd" "${pkgdir}/usr/bin/itd"
  install -Dm755 "./itctl" "${pkgdir}/usr/bin/itctl"

  # service
  install -Dm644 "./itd.service" ${pkgdir}/usr/lib/systemd/user/itd.service

  # config
  install -Dm644 "./itd.toml" ${pkgdir}/etc/itd.toml

  # license
  install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/itd/LICENSE"
}
