summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a76856fb2a5d5d59a7116f8e018e7e36d0432190 (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
# Maintainer: ldev <ldev at ldev dot eu dot org>

pkgname=handoff-git
pkgver=r1.be3d40b
pkgrel=1
pkgdesc='Daemon for seamless audio handoff between Linux and Apple using AirPods.'
arch=(x86_64)
url=https://github.com/xatuke/handoff
license=(MIT)
depends=(dbus bluez-utils)
makedepends=(qt6-base qt6-connectivity cmake make)
source=("handoff@.service" "$pkgname::git+$url.git")
md5sums=('SKIP' 'SKIP')

pkgver()  {
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd "$pkgname"
  mkdir -p build
  cd build
  cmake ..
  make
}

package() {
  install -Dm0644 "handoff@.service" "$pkgdir/usr/lib/systemd/user/handoff@.service"
  install -Dm0755 "$pkgname/build/airpods-handoff" "$pkgdir/usr/bin/airpods-handoff"
}