pkgname: bluez pkgver: '5.87' pkgrel: '1' pkgdesc: 'The BlueZ package contains the Bluetooth protocol stack for Linux.' url: 'https://www.bluez.org/' arch: x86_64 license: - 'GPL2.0-only' depends: - dbus - glib - libical - readline - systemd makedepends: - git - autoconf - automake - m4 - grep - sed - libtool - readline - dbus - libical - libvorbis - 'alsa-lib' - 'libusb-compat' - libsndfile - cups - glib source: - 'https://www.kernel.org/pub/linux/bluetooth/bluez-${pkgver}.tar.xz' sha256sums: - 26bdcf2cebd7310c6f598850606b037ef0c515fe6608ebc54d22c50c4c32b35f hooks: 'post-install': | name=bluez version=5.79 release=2 systemctl enable bluetooth systemctl enable --global obex build: | cd ${pkgname}-${pkgver} # glibc 2.44/GCC 16: zmienna "sync" koliduje z deklaracja sync() z unistd.h sed -i 's/static struct obc_driver sync =/static struct obc_driver obc_sync_driver =/' obexd/client/sync.c sed -i 's/&sync\b/\&obc_sync_driver/g' obexd/client/sync.c ./configure --prefix=/usr \ --sbindir=/usr/bin \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib \ --enable-gstreamer \ --enable-alsa \ --enable-usb \ --enable-tools \ --enable-bccmd \ --enable-dfutool \ --enable-hid2hci \ --enable-hidd \ --enable-pand \ --enable-dund \ --enable-cups \ --disable-test \ --disable-manpages \ --enable-library make ICAL_LIBS="-lical -licalvcal" make DESTDIR=${PKGDIR} install install -v -dm755 ${PKGDIR}/{etc/bluetooth,usr/bin} install -v -m644 src/main.conf ${PKGDIR}/etc/bluetooth/main.conf ln -svf ../libexec/bluetooth/bluetoothd ${PKGDIR}/usr/bin cat > ${PKGDIR}/etc/bluetooth/rfcomm.conf << "EOF" # rfcomm.conf # Set up the RFCOMM configuration of the Bluetooth subsystem in the Linux kernel. # Use one line per command # See the rfcomm man page for options # End of rfcomm.conf EOF cat > ${PKGDIR}/etc/bluetooth/uart.conf << "EOF" #uart.conf # Attach serial devices via UART HCI to BlueZ stack # Use one line per device # See the hciattach man page for options # End of uart.conf EOF install -m644 profiles/network/network.conf \ profiles/input/input.conf \ ${PKGDIR}/etc/bluetooth install -v -dm755 ${PKGDIR}/usr/share/doc/${pkgname} install -v -m644 doc/*.txt ${PKGDIR}/usr/share/doc/${pkgname} install -Dm644 COPYING ${PKGDIR}/usr/share/licenses/${pkgname}/COPYING install -Dm644 COPYING.LIB ${PKGDIR}/usr/share/licenses/${pkgname}/COPYING.LIB # Obsolet lib rm -f ${PKGDIR}/usr/lib/libbluetooth.la package: | true