blob: ce9b02efd986cde66e3a0db70efb4a754c9455d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Trần Nam Tuấn <tuantran1632001@gmail.com>
# Contributor: Jona Miller <miller dot jona at yandex dot com>
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
pkgname='headsetcontrol'
_pkgname='HeadsetControl'
pkgver=3.0.0
pkgrel=4
pkgdesc='Sidetone and Battery status for Logitech G930, G533, G633, G933 SteelSeries Arctis 7/PRO 2019 and Corsair VOID (Pro) in Linux and MacOSX '
arch=('x86_64')
url='https://github.com/Sapd/HeadsetControl'
provides=("${pkgname}")
license=('GPL-3.0-only')
depends=('hidapi')
makedepends=('cmake')
source=(
"${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz"
"${pkgname}-${pkgver}.tar.gz.sig::${url}/releases/download/${pkgver}/${pkgver}.tar.gz.asc"
)
sha256sums=(
'63bfd147c82277bfcf2314ad2b01ca4e4bf06e1d5516e01ee39232661f4d5144'
'SKIP'
)
validpgpkeys=(
'77BEB7E232CF1E5154777D4DD5866C58940197BF' # Denis Arnst <git@sapd.eu>
)
build() {
# Stop the compiler from treating warnings as error
sed -i 's/set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror")//g' "${_pkgname}-${pkgver}/CMakeLists.txt"
# TODO: Follow CMake packaging guildeline
cmake -B 'build' -S "${_pkgname}-${pkgver}" \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX='/usr'
cmake --build 'build'
}
package() {
DESTDIR="${pkgdir}" cmake --install build
install -Dvm644 "${_pkgname}-${pkgver}/README.md" -t "${pkgdir}/usr/share/doc/${pkgname}"
}
# vim: ts=2 sw=2 et:
|