# Maintainer: Knut Ahlers pkgname=streamdeck pkgver=1.2.1 pkgrel=1 pkgdesc="Utility to control Elgato StreamDeck on Linux" arch=('i686' 'x86_64') url="https://github.com/Luzifer/$pkgname" license=('Apache') depends=(hidapi) makedepends=('go') source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") sha512sums=('4974d7bf887923e09441878211cd222136f81e9416e142573910d5f5b851a1762f11b4dad95f797687493e36568b4a43276f6fa4f7eba09757e09d4c8aca0681') build() { cd "${srcdir}/${pkgname}-${pkgver}/cmd/streamdeck" go build -a -v \ -ldflags="-X main.version=${pkgver}" \ -mod=readonly } package() { install -Dm755 -t "${pkgdir}/usr/bin" "${srcdir}/${pkgname}-${pkgver}/cmd/streamdeck/streamdeck" install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "${srcdir}/${pkgname}-${pkgver}/LICENSE" }