mirror of
https://github.com/luzifer-aur/streamdeck.git
synced 2024-12-29 21:01:17 +00:00
25 lines
840 B
Bash
25 lines
840 B
Bash
# Maintainer: Knut Ahlers <knut at ahlers dot me>
|
|
|
|
pkgname=streamdeck
|
|
pkgver=1.4.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=('ba1f1673cc8419046e23aff1f66e7dc1f76a5977d6c976acd09bce784a13b172d89ee679ffa9c457f42e396db0faffe270a506c03927acd43a13611562429008')
|
|
|
|
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"
|
|
}
|