🔒 Repository is read-only – file editing is disabled.

recipes/gui/bluez/PAGBUILD.yaml main

112 linii Raw ← Powrót
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
pkgname: bluez
pkgver: d45fd43
pkgrel: '2'
pkgdesc: 'The BlueZ package contains the Bluetooth protocol stack for Linux.'
url: 'https://www.bluez.org/'
arch: x86_64
license:
- 'GPL2.0-only'

depends: []
makedepends:
- git
- autoconf
- automake
- m4
- grep
- sed
- libtool
- readline
- dbus
- libical
- libvorbis
- 'alsa-lib'
- 'libusb-compat'
- libsndfile
- cups
- glib

source:
- 'https://github.com/bluez/bluez.git'

sha256sums:
- SKIP

hooks:
  'post-install': |
    name=bluez
    version=d45fd43
    release=2
    systemctl enable bluetooth
    systemctl enable --global obex

build: |
  cd bluez
  # 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
  ./bootstrap

  ./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