streamdeck/PKGBUILD
Luzifer.io Jenkins 574779ef10 streamdeck v1.1.0
2020-10-19 22:14:13 +00:00

25 lines
840 B
Bash

# Maintainer: Knut Ahlers <knut at ahlers dot me>
pkgname=streamdeck
pkgver=1.1.0
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=('7ad1a083441c2080b92258ad5c59c2c410b43b407c3b0908f9e9b798b681cb193f66ea28f17b4239ebfa524d247efb29b263d5b77476fb9d84a614ce7419e316')
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"
}