aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fcf955f2f52b0d3de74a0fa7f84412e8d40d5ee4 (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
# Maintainer: PastLeo <chgu82837@gmail.com>
pkgname=fix-bt-a2dp
pkgver=0.1
pkgrel=2
pkgdesc="Workaround fixing no A2DP when BT headphone reconnects automatically (after being paired)"
arch=('any')
url="https://github.com/pastleo/fix-bt-a2dp"
license=('MIT')
depends=('ruby' 'bluez' 'bluez-utils' 'pulseaudio' 'pulseaudio-bluetooth')
optdepends=('libnotify')
source=(
  'fix-bt-a2dp.rb'
  'fix-bt-a2dp.service'
  'fix-bt-a2dp.udev-rules'
)
md5sums=(
  'f762db18584951f49296c1231a46d9ec'
  '24aa8ecab3f87b3cd6f8a318d314b27d'
  '53997fa84224bae44cdd1c4b5f88550f'
)

package() {
  install -D -m755 ./fix-bt-a2dp.rb "$pkgdir/usr/bin/fix-bt-a2dp"
  install -D -m644 ./fix-bt-a2dp.service "$pkgdir/usr/lib/systemd/system/fix-bt-a2dp.service"
  install -D -m644 ./fix-bt-a2dp.udev-rules "$pkgdir/usr/lib/udev/rules.d/90-fix-bt-a2dp.rules"
}