45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
#!/usr/bin/env bash
|
|
name='bluez'
|
|
#pkgname=('bluez' 'bluez-utils' 'bluez-libs' 'bluez-cups' 'bluez-hid2hci' 'bluez-plugins')
|
|
release='1'
|
|
version='5.66'
|
|
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" "https://www.linuxfromscratch.org/patches/blfs/svn/bluez-${veraion}-obexd_without_systemd-1.patch")
|
|
depends=(glib)
|
|
makedepends=(dbus libical json-c alsa-lib ell )
|
|
md5sums=('3f9496fedf878fba985e56713ed7752e' '62962daa1b19bbcc2db10b7bfd531ea6')
|
|
group=(net.wireless)
|
|
uses=()
|
|
arch=('x86_64')
|
|
|
|
cd $name-$version
|
|
|
|
patch -Np1 -i ../bluez-5.66-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
|
|
ln -svf ../libexec/bluetooth/bluetoothd /usr/sbin
|
|
install -v -dm755 /etc/bluetooth
|
|
install -v -m644 src/main.conf /etc/bluetooth/main.conf
|
|
install -v -dm755 /usr/share/doc/bluez-5.66
|
|
install -v -m644 doc/*.txt /usr/share/doc/bluez-5.66
|
|
}
|