2020-09-20 01:30:28 +00:00
|
|
|
# Maintainer: Knut Ahlers <knut at ahlers dot me>
|
|
|
|
|
|
|
|
pkgname=streamdeck
|
2024-10-29 09:04:13 +00:00
|
|
|
pkgver=1.7.2
|
2023-10-15 12:34:08 +00:00
|
|
|
pkgrel=1
|
2020-09-20 01:30:28 +00:00
|
|
|
pkgdesc="Utility to control Elgato StreamDeck on Linux"
|
|
|
|
arch=('i686' 'x86_64')
|
2022-10-31 01:04:18 +00:00
|
|
|
conflicts=('streamdeck-ui')
|
2020-09-20 01:30:28 +00:00
|
|
|
url="https://github.com/Luzifer/$pkgname"
|
|
|
|
license=('Apache')
|
|
|
|
depends=(hidapi)
|
|
|
|
makedepends=('go')
|
2023-04-18 11:03:46 +00:00
|
|
|
source=(
|
|
|
|
"${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
|
|
|
|
"50-streamdeck.rules"
|
|
|
|
)
|
2024-10-29 09:04:13 +00:00
|
|
|
sha512sums=('fe22fe9d272369074955c4439b801ea78614e758e5c6ec984a083e88b10d1f2b6ed9705bcce84c2f9f94d605ca26d2ef2e6eb676a9f47b1edebaa80d22d8150f'
|
2023-10-15 12:34:08 +00:00
|
|
|
'e3328d8b770a1393a71a95e7be86f88feb3014fda82dc7a4b4c0721b3a8baf84890af3bd639d3e096c31e5c23ff1f345c8cc9216114039cca32f03a360046ddc')
|
2020-09-20 01:30:28 +00:00
|
|
|
|
|
|
|
build() {
|
2022-10-31 01:04:18 +00:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}/cmd/streamdeck"
|
2023-04-18 11:03:46 +00:00
|
|
|
go build \
|
|
|
|
-buildmode=pie \
|
2022-10-31 01:04:18 +00:00
|
|
|
-ldflags="-X main.version=${pkgver}" \
|
2023-04-18 11:03:46 +00:00
|
|
|
-mod=readonly \
|
|
|
|
-trimpath
|
2020-09-20 01:30:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-10-31 01:04:18 +00:00
|
|
|
install -Dm755 -t "${pkgdir}/usr/bin" "${srcdir}/${pkgname}-${pkgver}/cmd/streamdeck/streamdeck"
|
|
|
|
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "${srcdir}/${pkgname}-${pkgver}/LICENSE"
|
2023-04-18 11:03:46 +00:00
|
|
|
install -Dm644 -t "${pkgdir}/etc/udev/rules.d" "${srcdir}/50-streamdeck.rules"
|
2020-09-20 01:30:28 +00:00
|
|
|
}
|