-
Notifications
You must be signed in to change notification settings - Fork 16
/
PKGBUILD
52 lines (45 loc) · 1.53 KB
/
PKGBUILD
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
pkgname=bluez
pkgver=5.76
pkgrel=1
pkgdesc="Libraries and tools for the Bluetooth protocol stack"
url="https://www.bluez.org/"
arch=('x86_64')
license=('GPL2')
depends=('libical' 'dbus' 'glib2' 'systemd' 'json-c' 'alsa-lib')
makedepends=('libusb' 'python3-docutils' 'python3-pygments')
optdepends=("cups: CUPS backend")
options=('!libtool')
backup=('etc/bluetooth/main.conf'
'etc/bluetooth/input.conf')
install=bluez.install
source=("https://www.kernel.org/pub/linux/bluetooth/${pkgname}-${pkgver}.tar.xz"
'bluetooth.modprobe')
sha256sums=('55e2c645909ad82d833c42ce85ec20434e0ef0070941b1eab73facdd240bbd63'
'46c021be659c9a1c4e55afd04df0c059af1f3d98a96338236412e449bf7477b4')
build() {
cd ${pkgname}-${pkgver}
#autoreconf -vfi
./configure --prefix=/usr \
--mandir=/usr/share/man \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib \
--enable-sixaxis \
--enable-library \
--enable-deprecated \
--enable-mesh \
--enable-hid2hci \
--enable-midi
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
install -dm755 ${pkgdir}/etc/bluetooth
install -Dm644 src/main.conf ${pkgdir}/etc/bluetooth/main.conf
install -Dm644 profiles/input/input.conf ${pkgdir}/etc/bluetooth/input.conf
install -dm755 ${pkgdir}/usr/share/doc/${pkgname}/dbus-apis
cp -a doc/*.txt ${pkgdir}/usr/share/doc/${pkgname}/dbus-apis/
install -dm755 ${pkgdir}/usr/lib/modprobe.d
install -Dm644 ../bluetooth.modprobe ${pkgdir}/usr/lib/modprobe.d/bluetooth-usb.conf
}