streamdeck/PKGBUILD

26 lines
840 B
Text
Raw Normal View History

2020-09-20 01:30:28 +00:00
# Maintainer: Knut Ahlers <knut at ahlers dot me>
pkgname=streamdeck
2020-10-19 22:14:13 +00:00
pkgver=1.1.0
2020-09-20 01:30:28 +00:00
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")
2020-10-19 22:14:13 +00:00
sha512sums=('7ad1a083441c2080b92258ad5c59c2c410b43b407c3b0908f9e9b798b681cb193f66ea28f17b4239ebfa524d247efb29b263d5b77476fb9d84a614ce7419e316')
2020-09-20 01:30:28 +00:00
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"
}