blob: 232942ff23f01e5f5e6c585fc6b628df6a004143 (
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
|
# Maintainer: jojii <jojii@gmx.net>
pkgname=earbuds-git
_pkgname=earbuds
_gitname=LiveBudsCli
pkgver=v0.1.5.r0.gd9486c9
pkgrel=1
pkgdesc="Control your galaxy buds live via cli"
url="https://github.com/JojiiOfficial/LiveBudsCli"
license=("GPL3")
source=("git+$url")
md5sums=('SKIP')
arch=("x86_64")
conflicts=("earbuds")
provides=("earbuds")
makedepends=("cargo" "git" "bluez" "bluez-libs" "gcc-libs" "glibc")
pkgver() {
cd $_gitname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $_gitname
cargo build --release
}
package() {
cd $_gitname
usrdir="$pkgdir/usr"
mkdir -p $usrdir
install -Dm 755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm 755 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
./target/release/${_pkgname} --generate=zsh > _${_pkgname}
install -Dm 644 _earbuds "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}"
./target/release/${_pkgname} --generate=bash > ${_pkgname}.fish
install -Dm 644 ${_pkgname}.fish "${pkgdir}/usr/share/fish/vendor_completions.d/${_pkgname}.fish"
}
|