54 lines
1.4 KiB
Bash
54 lines
1.4 KiB
Bash
#!/usr/bin/env bash
|
|
name='bluez'
|
|
release='3'
|
|
version='5.69'
|
|
url='https://www.bluez.org'
|
|
description='Daemons for the bluetooth protocol stack'
|
|
email='akarsu@protonmail.com'
|
|
maintainer='akarsu'
|
|
license=('GPLv2')
|
|
source=("https://www.kernel.org/pub/linux/bluetooth/bluez-${version}.tar.xz"
|
|
"bluez-5.69-obexd_without_systemd-1.patch"
|
|
"bluetooth.initd")
|
|
depends=(glib)
|
|
makedepends=(dbus libical json-c alsa-lib ell)
|
|
md5sums=('a05a6c133d3bf6dc1d1c6c46a9704312'
|
|
'SKIP'
|
|
'SKIP')
|
|
group=(net.wireless)
|
|
uses=()
|
|
arch=('x86_64')
|
|
|
|
cd $name-$version
|
|
|
|
prepare(){
|
|
patch -Np1 -i ../bluez-5.69-obexd_without_systemd-1.patch
|
|
}
|
|
|
|
setup(){
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib64/ \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--enable-library \
|
|
--disable-manpages \
|
|
--disable-systemd
|
|
}
|
|
|
|
build(){
|
|
make $jobs
|
|
}
|
|
|
|
package (){
|
|
make install $jobs
|
|
install -v -dm755 $DESTDIR/usr/sbin
|
|
install -v -dm755 $DESTDIR/etc/init.d
|
|
ln -svf ../libexec/bluetooth/bluetoothd $DESTDIR/usr/sbin/bluetoothd
|
|
install -v -dm755 $DESTDIR/etc/bluetooth
|
|
install -v -m644 src/main.conf $DESTDIR/etc/bluetooth/main.conf
|
|
install -v -dm755 $DESTDIR/usr/share/doc/
|
|
install -v -dm755 $DESTDIR/usr/share/doc/bluez-5.66
|
|
install -v -m644 doc/*.txt $DESTDIR/usr/share/doc/bluez-5.66
|
|
install ../bluetooth.initd $DESTDIR/etc/init.d/bluetooth
|
|
}
|