blob: 6b761f05ea0e4ff011a379faf843cf08c88f9302 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer:
_pkgname="sonyheadphonesclient-bluetooth"
pkgname="$_pkgname"
pkgver=1.4.4
pkgrel=1
pkgdesc="Desktop client recreating the functionality of the Sony Headphones app (Bluetooth/TWS/XM5+)"
url="https://github.com/mos9527/SonyHeadphonesClient"
license=('MIT')
arch=('x86_64')
depends=(
'bluez-libs'
'dbus'
'libglvnd'
)
makedepends=(
'cmake'
'git'
'libxcursor'
'libxkbcommon'
'ninja'
'wayland'
'xorg-xinput'
)
_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git#tag=$pkgver")
sha256sums=('SKIP')
prepare() {
cd "$_pkgsrc"
git submodule update --init --recursive --depth=1
}
build() {
export CXXFLAGS+=" -Wno-error=format-security"
local _cmake_options=(
-B build
-S "$_pkgsrc"
-G Ninja
-DCMAKE_BUILD_TYPE=None
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build
}
package() {
install -Dm755 "build/SonyHeadphonesClient" "$pkgdir/usr/bin/$_pkgname"
install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/sonyheadphonesclient-bluetooth.desktop" << END
[Desktop Entry]
Name=Sony Headphones Client [XM5+]
Comment=[XM5+] A Linux client recreating the functionality of the Sony Headphones app
Exec=$_pkgname
Terminal=false
Categories=Utility;
Type=Application
Icon=audio-headphones
END
install -Dm644 "$_pkgsrc/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|