blob: 7ffed2faace9e5bf7073092b95de285d9995820c (
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
|
# Maintainer: Jack Rubacha <rubacha.jack03@gmail.com>
# Contributor: gato_lento <vukk.euob at gmail>
# Contributor: Jonas Schwartz
_program_name=GalaxyBudsClient
_pkgname="${_program_name,,}"
pkgname="${_pkgname}-bin"
pkgver=5.1.0
pkgrel=1
pkgdesc="Unofficial manager for the Samsung Galaxy Buds, Buds+, Buds Live and Buds Pro"
arch=('x86_64'
'armv7h'
'aarch64')
url="https://github.com/timschneeb/${_program_name}"
license=('GPL3')
depends=('gcc-libs' 'zlib' 'bluez')
options=('!strip')
install="${pkgname}.install"
source=("${_pkgname}.desktop" "icon_white.png")
# regardless of architecture, the url used to download the binary starts with this
_source_url_common="${url}/releases/download/${pkgver}"
# template used for the names of the binaries
_source_binary_common="${_program_name}_Linux_ARCH_Portable.bin"
_source_binary_x86_64="${_source_binary_common/ARCH/64bit}"
_source_binary_armv7h="${_source_binary_common/ARCH/arm}"
_source_binary_aarch64="${_source_binary_common/ARCH/arm64}"
# Attach version to the source file names to have unique binary names per version
_local_binary_x86_64="${_source_binary_x86_64/.bin/-${pkgver}}.bin"
_local_binary_armv7h4="${_source_binary_armv7h/.bin/-${pkgver}}.bin"
_local_binary_aarch64="${_source_binary_aarch64/.bin/-${pkgver}}.bin"
# urls used to download the binaries for each architecture
source_x86_64=("$_local_binary_x86_64::${_source_url_common}/${_source_binary_x86_64}")
source_armv7h=("$_local_binary_armv7h4::${_source_url_common}/${_source_binary_armv7h}")
source_aarch64=("$_local_binary_aarch64::${_source_url_common}/${_source_binary_aarch64}")
package() {
dest="${pkgdir}/usr/bin/${_pkgname}"
if [ $CARCH == "x86_64" ]; then
install -Dm755 $_local_binary_x86_64 $dest
elif [ $CARCH == "armv7h" ]; then
install -Dm755 $_local_binary_armv7h4 $dest
elif [ $CARCH == "aarch64" ]; then
install -Dm755 $_local_binary_aarch64 $dest
fi
install -Dm644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
install -Dm644 "${srcdir}/icon_white.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
}
sha256sums=('88677692ff1d7202b9f7aedbb5ec6cc01684041b94220a8da8feb69d9a028f70'
'17c7fa91678d1ba8cac08dcfda613735bfab97f4488909c8ac98a5aaa2c94214')
sha256sums_x86_64=('09dfdb8f6a5f7ffc38a5fda9ca99311acf3ac56454d00b3105b59282a841857e')
sha256sums_armv7h=('e15a9eb81ccb7c0ea38694bd26121484b4f9ab2219b5f97d895f10bad5921d3b')
sha256sums_aarch64=('e7d0ef2b8b8ac496e7d7f257e655ceefe083dfdd65b3c45cc5578572479bc892')
|