upg bluez gcr namcap

This commit is contained in:
joborun linux 2024-01-15 01:39:53 +02:00
parent d51a954a8d
commit efe3cc5499
8 changed files with 236 additions and 185 deletions

View File

@ -6,9 +6,10 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgbase=bluez
pkgname=('bluez' 'bluez-utils' 'bluez-libs' 'bluez-cups' 'bluez-hid2hci' 'bluez-plugins')
#pkgname=('bluez' 'bluez-utils' 'bluez-libs' 'bluez-cups' 'bluez-hid2hci' 'bluez-plugins')
pkgname=('bluez' 'bluez-utils' 'bluez-libs' 'bluez-cups' 'bluez-hid2hci' 'bluez-plugins' 'bluez-deprecated-tools' 'bluez-mesh' 'bluez-obex')
pkgver=5.72
pkgrel=01
pkgrel=02
url="http://www.bluez.org/"
# options=('debug') ### uncomment this to have the debug pkgs produced
makedepends=('glibc' 'dbus' 'libical' 'alsa-lib' 'json-c' 'ell' 'python-docutils' 'python-pygments')
@ -47,8 +48,31 @@ build() {
--enable-mesh \
--enable-hid2hci \
--enable-experimental \
--enable-library # this is deprecated
--enable-datafiles \
--enable-library \
--enable-deprecated # libraries and these tools are deprecated
make
# fake installation to be seperated into packages
make DESTDIR="${srcdir}/fakeinstall" install
# add missing tools FS#41132, FS#41687, FS#42716
for files in `find tools/ -type f -perm -755`; do
filename=$(basename $files)
install -Dm755 "${srcdir}"/"${pkgbase}"-${pkgver}/tools/$filename "${srcdir}/fakeinstall"/usr/bin/$filename
done
}
_install() {
local src f dir
for src; do
f="${src#fakeinstall/}"
dir="${pkgdir}/${f%/*}"
install -m755 -d "${dir}"
# use copy so a new file is created and fakeroot can track properties such as setuid
cp -av "${src}" "${dir}/"
rm -rf "${src}"
done
}
check() {
@ -58,127 +82,130 @@ check() {
}
package_bluez() {
pkgdesc="Daemons for the bluetooth protocol stack"
depends=('glibc' 'libical' 'dbus' 'glib2' 'alsa-lib' 'json-c')
backup=('etc/bluetooth/main.conf')
pkgdesc="Daemons for the bluetooth protocol stack w/o systemd"
depends=('glibc' 'dbus' 'glib2' 'alsa-lib')
backup=(etc/bluetooth/{main,input,network}.conf)
conflicts=('obexd-client' 'obexd-server')
cd "${pkgbase}"-${pkgver}
make DESTDIR=${pkgdir} \
install-pkglibexecPROGRAMS \
install-dbussessionbusDATA \
install-dbussystembusDATA \
install-dbusDATA \
install-man8
# ship upstream main config file
_install fakeinstall/usr/lib/bluetooth/bluetoothd
# _install fakeinstall/usr/lib/systemd/system/bluetooth.service
# _install fakeinstall/usr/share/dbus-1/system-services/org.bluez.service
_install fakeinstall/usr/share/dbus-1/system.d/bluetooth.conf
_install fakeinstall/usr/share/man/man8/bluetoothd.8
# ship upstream main config files
install -dm555 "${pkgdir}"/etc/bluetooth
install -Dm644 "${srcdir}"/"${pkgbase}"-${pkgver}/src/main.conf "${pkgdir}"/etc/bluetooth/main.conf
install -Dm644 "${srcdir}"/"${pkgbase}"-${pkgver}/profiles/input/input.conf "${pkgdir}"/etc/bluetooth/input.conf
install -Dm644 "${srcdir}"/"${pkgbase}"-${pkgver}/profiles/network/network.conf "${pkgdir}"/etc/bluetooth/network.conf
# add basic documention
install -dm755 "${pkgdir}"/usr/share/doc/"${pkgbase}"/dbus-apis
cp -a doc/*.txt "${pkgdir}"/usr/share/doc/"${pkgbase}"/dbus-apis/
cp -a "${pkgbase}"-${pkgver}/doc/*.txt "${pkgdir}"/usr/share/doc/"${pkgbase}"/dbus-apis/
# fix module loading errors
install -dm755 "${pkgdir}"/usr/lib/modprobe.d
install -Dm644 "${srcdir}"/bluetooth.modprobe "${pkgdir}"/usr/lib/modprobe.d/bluetooth-usb.conf
# load module at system start required by some functions
# https://bugzilla.kernel.org/show_bug.cgi?id=196621
install -dm755 "$pkgdir"/usr/lib/modules-load.d
echo "crypto_user" > "$pkgdir"/usr/lib/modules-load.d/bluez.conf
# FS#74157 - bluez systemd service fails without localstatedir present
# needs test to see if the same happens with 66
# needs test to see if the same happens with 66 & runit
install -dm700 "${pkgdir}"/var/lib/bluetooth
# cleanup - these libs go into bluez-libs
rm "${pkgdir}"/usr/lib/libbluetooth.so*
}
package_bluez-utils() {
pkgdesc="Development and debugging utilities for the bluetooth protocol stack"
pkgdesc="Development and debugging utilities for the bluetooth protocol stack w/o systemd"
depends=('glibc' 'dbus' 'glib2' 'readline')
optdepends=('glibc' 'ell: for btpclient')
optdepends=('ell: for btpclient')
backup=('etc/bluetooth/mesh-main.conf')
conflicts=('bluez-hcidump')
provides=('bluez-hcidump')
replaces=('bluez-hcidump' 'bluez<=4.101')
cd $pkgbase-$pkgver
make DESTDIR=${pkgdir} \
install-binPROGRAMS \
install-dist_zshcompletionDATA \
install-man1
_install fakeinstall/usr/bin/{advtest,amptest,avinfo,avtest,bcmfw,bdaddr,bluemoon,bluetoothctl,bluetooth-player,bneptest,btattach,btconfig,btgatt-client,btgatt-server,btinfo,btiotest,btmgmt,btmon,btpclient,btpclientctl,btproxy,btsnoop,check-selftest,cltest,create-image,eddystone,gatt-service,hcieventmask,hcisecfilter,hex2hcd,hid2hci,hwdb,ibeacon,isotest,l2ping,l2test,mcaptest,mpris-proxy,nokfw,oobtest,rctest,rtlfw,scotest,seq2bseq,test-runner}
_install fakeinstall/usr/share/man/man1/bluetoothctl*.1
_install fakeinstall/usr/share/man/man1/{btattach,btmgmt,btmon,isotest,l2ping,rctest}.1
_install fakeinstall/usr/share/man/man5/org.bluez.{A,B,D,G,I,L,M,N,P}*.5
_install fakeinstall/usr/share/zsh/site-functions/_bluetoothctl
}
# add missing tools FS#41132, FS#41687, FS#42716
for files in `find tools/ -type f -perm -755`; do
filename=$(basename $files)
install -Dm755 "${srcdir}"/"${pkgbase}"-${pkgver}/tools/$filename "${pkgdir}"/usr/bin/$filename
done
# ship upstream mesh config file
install -dm555 "${pkgdir}"/etc/bluetooth
install -Dm644 "${srcdir}"/"${pkgbase}"-${pkgver}/mesh/mesh-main.conf "${pkgdir}"/etc/bluetooth/mesh-main.conf
# libbluetooth.so* are part of libLTLIBRARIES and binPROGRAMS targets
#make DESTDIR=${pkgdir} uninstall-libLTLIBRARIES
#rmdir ${pkgdir}/usr/lib
rm -rf ${pkgdir}/usr/lib
package_bluez-deprecated-tools() {
pkgdesc="Deprecated tools that are no longer maintained w/o systemd"
depends=('json-c' 'glib2' 'dbus' 'readline' 'glibc')
# move the hid2hci man page out
mv ${pkgdir}/usr/share/man/man1/hid2hci.1 ${srcdir}/
_install fakeinstall/usr/bin/{ciptool,hciattach,hciconfig,hcidump,hcitool,meshctl,rfcomm,sdptool}
_install fakeinstall/usr/share/man/man1/{ciptool,hciattach,hciconfig,hcidump,hcitool,rfcomm,sdptool}.1
}
package_bluez-libs() {
pkgdesc="Deprecated libraries for the bluetooth protocol stack"
depends=('glibc' glibc)
depends=('glibc')
provides=('libbluetooth.so')
license=('LGPL2.1')
license=('LGPL-2.1-only')
cd $pkgbase-$pkgver
make DESTDIR=${pkgdir} \
install-pkgincludeHEADERS \
install-libLTLIBRARIES \
install-pkgconfigDATA
_install fakeinstall/usr/include/bluetooth/*
_install fakeinstall/usr/lib/libbluetooth.so*
_install fakeinstall/usr/lib/pkgconfig/*
}
package_bluez-cups() {
pkgdesc="CUPS printer backend for Bluetooth printers"
depends=('glibc' 'cups')
depends=('cups' 'glib2' 'glibc' 'dbus')
cd $pkgbase-$pkgver
make DESTDIR=${pkgdir} install-cupsPROGRAMS
# cleanup - these libs go into bluez-libs
rm "${pkgdir}"/usr/lib/libbluetooth.so*
_install fakeinstall/usr/lib/cups/backend/bluetooth
}
package_bluez-hid2hci() {
pkgdesc="Put HID proxying bluetooth HCI's into HCI mode"
pkgdesc="Put HID proxying bluetooth HCI's into HCI mode w/o systemd"
cd $pkgbase-$pkgver
make DESTDIR=${pkgdir} \
install-udevPROGRAMS \
install-rulesDATA
install -dm755 ${pkgdir}/usr/share/man/man1
mv ${srcdir}/hid2hci.1 ${pkgdir}/usr/share/man/man1/hid2hci.1
_install fakeinstall/usr/lib/udev/*
_install fakeinstall/usr/share/man/man1/hid2hci.1
}
# cleanup - these libs go into bluez-libs
rm "${pkgdir}"/usr/lib/libbluetooth.so*
package_bluez-mesh() {
pkgdesc="Services for bluetooth mesh w/o systemd"
depends=('glibc' 'json-c' 'readline' )
backup=('etc/bluetooth/mesh-main.conf')
_install fakeinstall/usr/bin/{mesh-cfgclient,mesh-cfgtest}
_install fakeinstall/usr/lib/bluetooth/bluetooth-meshd
# _install fakeinstall/usr/lib/systemd/system/bluetooth-mesh.service
# _install fakeinstall/usr/share/dbus-1/system-services/org.bluez.mesh.service
_install fakeinstall/usr/share/dbus-1/system.d/bluetooth-mesh.conf
_install fakeinstall/usr/share/man/man8/bluetooth-meshd.8
# ship upstream mesh config file
install -dm555 "${pkgdir}"/etc/bluetooth
install -Dm644 "${srcdir}"/"${pkgbase}"-${pkgver}/mesh/mesh-main.conf "${pkgdir}"/etc/bluetooth/mesh-main.conf
}
package_bluez-obex() {
pkgdesc="Object Exchange daemon for sharing content w/o systemd"
depends=('glib2' 'libical' 'dbus' 'readline' 'glibc')
_install fakeinstall/usr/bin/{obexctl,obex-client-tool,obex-server-tool}
_install fakeinstall/usr/lib/bluetooth/obexd
# _install fakeinstall/usr/lib/systemd/user/obex.service
# _install fakeinstall/usr/share/dbus-1/services/org.bluez.obex.service
_install fakeinstall/usr/share/man/man5/org.bluez.obex*.5
# fix obex file transfer - https://bugs.archlinux.org/task/45816
# ln -fs /usr/lib/systemd/user/obex.service "${pkgdir}"/usr/lib/systemd/user/dbus-org.bluez.obex.service
}
package_bluez-plugins() {
pkgdesc="bluez plugins (PS3 Sixaxis controller)"
depends=('glibc' )
pkgdesc="bluez plugins (PS3 Sixaxis controller) w/o systemd"
depends=('glibc')
cd $pkgbase-$pkgver
make DESTDIR=${pkgdir} \
install-pluginLTLIBRARIES
_install fakeinstall/usr/lib/bluetooth/plugins/sixaxis.so
# cleanup - these libs go into bluez-libs
rm "${pkgdir}"/usr/lib/libbluetooth.so*
# make sure there are no files left to install
# rm fakeinstall/usr/lib/libbluetooth.la
# rm fakeinstall/usr/lib/bluetooth/plugins/sixaxis.la
# find fakeinstall -depth -print0 | xargs -0 rmdir
}
#---- arch license gpg-key & sha256sums ----
@ -193,10 +220,13 @@ sha256sums=(499d7fa345a996c1bb650f5c6749e1d929111fa6ece0be0e98687fee6124536e #
5950ed797108c1060660f94693bd097dffd5e180c84e2445ba1429a72f808495 # bluez-5.72.tar.sign
46c021be659c9a1c4e55afd04df0c059af1f3d98a96338236412e449bf7477b4) # bluetooth.modprobe
## e53f994781867cdf25b3dda2547582bd1f93bd3ad82e3a6443cb9f568f1d8f8c bluez-5.72-01-x86_64.pkg.tar.lz
## d85291f489b22d98ba3546ccb20efc5314acf6108e58818dc4e3a0380c58d858 bluez-cups-5.72-01-x86_64.pkg.tar.lz
## 97d619b6be92a5a70ff9bbaec54cf03c98c0d2a1a88a4bed35834abf8b607d4a bluez-hid2hci-5.72-01-x86_64.pkg.tar.lz
## b2dcc976311010cc4e7d886a4f7a63d7dd524e65054b2bde122b27c75798f59a bluez-libs-5.72-01-x86_64.pkg.tar.lz
## 78cff69603e1e5ccc995610f88c6d9f14975b21cbe8f56119d0024938b9d6e71 bluez-plugins-5.72-01-x86_64.pkg.tar.lz
## a92833e6cdab9c5a8428edacd0676813d22c2c273b48784735da4359a2038c62 bluez-utils-5.72-01-x86_64.pkg.tar.lz
## d6dbf253cd069af30585f96dddbfa39a748580fe77f0f26d9b0f5d3cdc268708 bluez-5.72-02-x86_64.pkg.tar.lz
## 43cf6abd80662c8c8caa14e58619da3fc1a5a03a65f135aa5c8c6c6d24f12a86 bluez-cups-5.72-02-x86_64.pkg.tar.lz
## 4d4b7ca063f6033038153240b3607a9dff1e6895a6f8100ccb2cf21d5c894e79 bluez-deprecated-tools-5.72-02-x86_64.pkg.tar.lz
## cd92adb7f11cf0f765eeea0e5ccea18956c678bbb16a6ebb3379fe9c84a3a854 bluez-hid2hci-5.72-02-x86_64.pkg.tar.lz
## 9f4fa833751760df45efb51fc61a26a893d008a6a278cad899aa04c7f969f8bc bluez-libs-5.72-02-x86_64.pkg.tar.lz
## bbf3b2745639b0d95fdd6caa7ad40b66bec714022af96d5f9a1cc567f1471f03 bluez-mesh-5.72-02-x86_64.pkg.tar.lz
## 46e4773f10c7092fa159a711ccbd7aae770382c2c3f4fd2262b319bb264656e5 bluez-obex-5.72-02-x86_64.pkg.tar.lz
## 5eb6aa04486c10ccaeb1184384dedb2309e865c73c150758e0a1d78ead945de3 bluez-plugins-5.72-02-x86_64.pkg.tar.lz
## 153da368e3f837dc7a53bba09c99e977cb4715c807c5d9719ed3173de8d324f9 bluez-utils-5.72-02-x86_64.pkg.tar.lz

View File

@ -5,13 +5,13 @@
# Contributor: Geoffroy Carrier <geoffroy@archlinux.org>
pkgbase=bluez
pkgname=('bluez' 'bluez-utils' 'bluez-libs' 'bluez-cups' 'bluez-hid2hci' 'bluez-plugins')
pkgname=('bluez' 'bluez-utils' 'bluez-libs' 'bluez-cups' 'bluez-deprecated-tools' 'bluez-hid2hci' 'bluez-mesh' 'bluez-obex' 'bluez-plugins')
pkgver=5.72
pkgrel=1
pkgrel=2
url="http://www.bluez.org/"
arch=('x86_64')
license=('GPL2')
makedepends=('dbus' 'libical' 'systemd' 'alsa-lib' 'json-c' 'ell' 'python-docutils' 'python-pygments')
license=('GPL-2.0-only')
makedepends=('dbus' 'libical' 'systemd' 'alsa-lib' 'json-c' 'ell' 'python-docutils' 'python-pygments' 'cups')
source=(https://www.kernel.org/pub/linux/bluetooth/${pkgname}-${pkgver}.tar.{xz,sign}
bluetooth.modprobe)
# see https://www.kernel.org/pub/linux/bluetooth/sha256sums.asc
@ -35,40 +35,59 @@ build() {
--enable-mesh \
--enable-hid2hci \
--enable-experimental \
--enable-library # this is deprecated
--enable-datafiles \
--enable-library --enable-deprecated # libraries and these tools are deprecated
make
# fake installation to be seperated into packages
make DESTDIR="${srcdir}/fakeinstall" install
# add missing tools FS#41132, FS#41687, FS#42716
for files in `find tools/ -type f -perm -755`; do
filename=$(basename $files)
install -Dm755 "${srcdir}"/"${pkgbase}"-${pkgver}/tools/$filename "${srcdir}/fakeinstall"/usr/bin/$filename
done
}
_install() {
local src f dir
for src; do
f="${src#fakeinstall/}"
dir="${pkgdir}/${f%/*}"
install -m755 -d "${dir}"
# use copy so a new file is created and fakeroot can track properties such as setuid
cp -av "${src}" "${dir}/"
rm -rf "${src}"
done
}
check() {
cd "$pkgname"-$pkgver
# fails test-vcp - https://github.com/bluez/bluez/issues/683
# fails test-vcp due to lto - https://github.com/bluez/bluez/issues/683
make check || /bin/true
}
package_bluez() {
pkgdesc="Daemons for the bluetooth protocol stack"
depends=('libical' 'dbus' 'glib2' 'alsa-lib' 'json-c' 'glibc')
backup=('etc/bluetooth/main.conf')
conflicts=('obexd-client' 'obexd-server')
depends=('systemd' 'dbus' 'glib2' 'alsa-lib' 'glibc')
backup=(etc/bluetooth/{main,input,network}.conf)
cd "${pkgbase}"-${pkgver}
make DESTDIR=${pkgdir} \
install-pkglibexecPROGRAMS \
install-dbussessionbusDATA \
install-systemdsystemunitDATA \
install-systemduserunitDATA \
install-dbussystembusDATA \
install-dbusDATA \
install-man8
_install fakeinstall/usr/lib/bluetooth/bluetoothd
_install fakeinstall/usr/lib/systemd/system/bluetooth.service
_install fakeinstall/usr/share/dbus-1/system-services/org.bluez.service
_install fakeinstall/usr/share/dbus-1/system.d/bluetooth.conf
_install fakeinstall/usr/share/man/man8/bluetoothd.8
# ship upstream main config file
# ship upstream main config files
install -dm555 "${pkgdir}"/etc/bluetooth
install -Dm644 "${srcdir}"/"${pkgbase}"-${pkgver}/src/main.conf "${pkgdir}"/etc/bluetooth/main.conf
install -Dm644 "${srcdir}"/"${pkgbase}"-${pkgver}/profiles/input/input.conf "${pkgdir}"/etc/bluetooth/input.conf
install -Dm644 "${srcdir}"/"${pkgbase}"-${pkgver}/profiles/network/network.conf "${pkgdir}"/etc/bluetooth/network.conf
# add basic documention
install -dm755 "${pkgdir}"/usr/share/doc/"${pkgbase}"/dbus-apis
cp -a doc/*.txt "${pkgdir}"/usr/share/doc/"${pkgbase}"/dbus-apis/
cp -a "${pkgbase}"-${pkgver}/doc/*.txt "${pkgdir}"/usr/share/doc/"${pkgbase}"/dbus-apis/
# fix module loading errors
install -dm755 "${pkgdir}"/usr/lib/modprobe.d
install -Dm644 "${srcdir}"/bluetooth.modprobe "${pkgdir}"/usr/lib/modprobe.d/bluetooth-usb.conf
@ -77,99 +96,95 @@ package_bluez() {
install -dm755 "$pkgdir"/usr/lib/modules-load.d
echo "crypto_user" > "$pkgdir"/usr/lib/modules-load.d/bluez.conf
# fix obex file transfer - https://bugs.archlinux.org/task/45816
ln -fs /usr/lib/systemd/user/obex.service "${pkgdir}"/usr/lib/systemd/user/dbus-org.bluez.obex.service
# FS#74157 - bluez systemd service fails without localstatedir present
install -dm700 "${pkgdir}"/var/lib/bluetooth
# cleanup - these libs go into bluez-libs
rm "${pkgdir}"/usr/lib/libbluetooth.so*
}
package_bluez-utils() {
pkgdesc="Development and debugging utilities for the bluetooth protocol stack"
depends=('dbus' 'systemd' 'systemd-libs' 'glib2' 'glibc' 'readline')
optdepends=('ell: for btpclient'
'json-c: for mesh-cfgclient')
backup=('etc/bluetooth/mesh-main.conf')
conflicts=('bluez-hcidump')
provides=('bluez-hcidump')
replaces=('bluez-hcidump' 'bluez<=4.101')
depends=('dbus' 'systemd-libs' 'glib2' 'glibc' 'readline')
optdepends=('ell: for btpclient')
cd "${pkgbase}"-${pkgver}
make DESTDIR="${pkgdir}" \
install-binPROGRAMS \
install-dist_zshcompletionDATA \
install-man1
_install fakeinstall/usr/bin/{advtest,amptest,avinfo,avtest,bcmfw,bdaddr,bluemoon,bluetoothctl,bluetooth-player,bneptest,btattach,btconfig,btgatt-client,btgatt-server,btinfo,btiotest,btmgmt,btmon,btpclient,btpclientctl,btproxy,btsnoop,check-selftest,cltest,create-image,eddystone,gatt-service,hcieventmask,hcisecfilter,hex2hcd,hid2hci,hwdb,ibeacon,isotest,l2ping,l2test,mcaptest,mpris-proxy,nokfw,oobtest,rctest,rtlfw,scotest,seq2bseq,test-runner}
_install fakeinstall/usr/share/man/man1/bluetoothctl*.1
_install fakeinstall/usr/share/man/man1/{btattach,btmgmt,btmon,isotest,l2ping,rctest}.1
_install fakeinstall/usr/share/man/man5/org.bluez.{A,B,D,G,I,L,M,N,P}*.5
_install fakeinstall/usr/share/zsh/site-functions/_bluetoothctl
}
# add missing tools FS#41132, FS#41687, FS#42716
for files in `find tools/ -type f -perm -755`; do
filename=$(basename $files)
install -Dm755 "${srcdir}"/"${pkgbase}"-${pkgver}/tools/$filename "${pkgdir}"/usr/bin/$filename
done
# ship upstream mesh config file
install -dm555 "${pkgdir}"/etc/bluetooth
install -Dm644 "${srcdir}"/"${pkgbase}"-${pkgver}/mesh/mesh-main.conf "${pkgdir}"/etc/bluetooth/mesh-main.conf
# libbluetooth.so* are part of libLTLIBRARIES and binPROGRAMS targets
#make DESTDIR=${pkgdir} uninstall-libLTLIBRARIES
#rmdir ${pkgdir}/usr/lib
rm -rf "${pkgdir}"/usr/lib
package_bluez-deprecated-tools() {
pkgdesc="Deprecated tools that are no longer maintained"
depends=('json-c' 'systemd-libs' 'glib2' 'dbus' 'readline' 'glibc')
# move the hid2hci man page out
mv "${pkgdir}"/usr/share/man/man1/hid2hci.1 "${srcdir}"/
_install fakeinstall/usr/bin/{ciptool,hciattach,hciconfig,hcidump,hcitool,meshctl,rfcomm,sdptool}
_install fakeinstall/usr/share/man/man1/{ciptool,hciattach,hciconfig,hcidump,hcitool,rfcomm,sdptool}.1
}
package_bluez-libs() {
pkgdesc="Deprecated libraries for the bluetooth protocol stack"
depends=('glibc')
provides=('libbluetooth.so')
license=('LGPL2.1')
license=('LGPL-2.1-only')
cd "${pkgbase}"-${pkgver}
make DESTDIR="${pkgdir}" \
install-pkgincludeHEADERS \
install-libLTLIBRARIES \
install-pkgconfigDATA
_install fakeinstall/usr/include/bluetooth/*
_install fakeinstall/usr/lib/libbluetooth.so*
_install fakeinstall/usr/lib/pkgconfig/*
}
package_bluez-cups() {
pkgdesc="CUPS printer backend for Bluetooth printers"
depends=('cups' 'glib2' 'glibc' 'dbus')
cd "${pkgbase}"-${pkgver}
make DESTDIR="${pkgdir}" install-cupsPROGRAMS
# cleanup - these libs go into bluez-libs
rm "${pkgdir}"/usr/lib/libbluetooth.so*
_install fakeinstall/usr/lib/cups/backend/bluetooth
}
package_bluez-hid2hci() {
pkgdesc="Put HID proxying bluetooth HCI's into HCI mode"
depends=('systemd' 'systemd-libs' 'glibc')
depends=('systemd-libs' 'glibc')
cd "${pkgbase}"-${pkgver}
make DESTDIR=${pkgdir} \
install-udevPROGRAMS \
install-rulesDATA
install -dm755 "${pkgdir}"/usr/share/man/man1
mv "${srcdir}"/hid2hci.1 "${pkgdir}"/usr/share/man/man1/hid2hci.1
_install fakeinstall/usr/lib/udev/*
_install fakeinstall/usr/share/man/man1/hid2hci.1
}
# cleanup - these libs go into bluez-libs
rm "${pkgdir}"/usr/lib/libbluetooth.so*
package_bluez-mesh() {
pkgdesc="Services for bluetooth mesh"
depends=('systemd' 'json-c' 'readline' 'glibc')
backup=('etc/bluetooth/mesh-main.conf')
_install fakeinstall/usr/bin/{mesh-cfgclient,mesh-cfgtest}
_install fakeinstall/usr/lib/bluetooth/bluetooth-meshd
_install fakeinstall/usr/lib/systemd/system/bluetooth-mesh.service
_install fakeinstall/usr/share/dbus-1/system-services/org.bluez.mesh.service
_install fakeinstall/usr/share/dbus-1/system.d/bluetooth-mesh.conf
_install fakeinstall/usr/share/man/man8/bluetooth-meshd.8
# ship upstream mesh config file
install -dm555 "${pkgdir}"/etc/bluetooth
install -Dm644 "${srcdir}"/"${pkgbase}"-${pkgver}/mesh/mesh-main.conf "${pkgdir}"/etc/bluetooth/mesh-main.conf
}
package_bluez-obex() {
pkgdesc="Object Exchange daemon for sharing content"
depends=('systemd' 'glib2' 'libical' 'dbus' 'readline' 'glibc')
_install fakeinstall/usr/bin/{obexctl,obex-client-tool,obex-server-tool}
_install fakeinstall/usr/lib/bluetooth/obexd
_install fakeinstall/usr/lib/systemd/user/obex.service
_install fakeinstall/usr/share/dbus-1/services/org.bluez.obex.service
_install fakeinstall/usr/share/man/man5/org.bluez.obex*.5
# fix obex file transfer - https://bugs.archlinux.org/task/45816
ln -fs /usr/lib/systemd/user/obex.service "${pkgdir}"/usr/lib/systemd/user/dbus-org.bluez.obex.service
}
package_bluez-plugins() {
pkgdesc="bluez plugins (PS3 Sixaxis controller)"
depends=('systemd' 'systemd-libs' 'glibc')
depends=('systemd-libs' 'glibc')
cd "${pkgbase}"-${pkgver}
make DESTDIR="${pkgdir}" \
install-pluginLTLIBRARIES
_install fakeinstall/usr/lib/bluetooth/plugins/sixaxis.so
# cleanup - these libs go into bluez-libs
rm "${pkgdir}"/usr/lib/libbluetooth.so*
# make sure there are no files left to install
rm fakeinstall/usr/lib/libbluetooth.la
rm fakeinstall/usr/lib/bluetooth/plugins/sixaxis.la
find fakeinstall -depth -print0 | xargs -0 rmdir
}

View File

@ -3,5 +3,6 @@ alsa-lib
ell
python-docutils
dbus
python-pygments

View File

@ -8,14 +8,14 @@
#pkgbase=gcr
#pkgname=(gcr gcr-docs)
pkgname=gcr
pkgver=3.41.1
pkgrel=04
pkgver=3.41.2
pkgrel=01
pkgdesc="A library for bits of crypto UI and parsing w/o systemd"
url="https://gitlab.gnome.org/GNOME/gcr"
depends=(gtk3 libgcrypt p11-kit openssh libsecret)
makedepends=(gobject-introspection vala libxslt git gi-docgen meson)
# options=(debug) ### remove this to have the debug pkg produced
_commit=664f8d8619cc6d661bd863107824efbac383a9bf # tags/3.41.1^0
_commit=cd63e8a0378e13ba0aa15c2a68d1070fa62e6532 # tags/3.41.2^0
source=("git+https://gitlab.gnome.org/GNOME/gcr.git#commit=$_commit")
pkgver() {
@ -62,10 +62,8 @@ package() {
arch=(x86_64)
license=(GPL2)
license=(LGPL-2.1-or-later)
sha256sums=(SKIP)
## cdb299f5f94667f83bc0ab96e18d28fc083be8fb2356c08fea52e66e4f9735c0 gcr-3.41.1-04-x86_64.pkg.tar.lz
## dc62d7660e7e6f7b555c079c5fce079d8eeced150792e10394db0d268b9bde11 gcr-3.41.2-01-x86_64.pkg.tar.lz

View File

@ -2,13 +2,16 @@
# Contributor: Ionut Biru <ibiru@archlinux.org>
pkgbase=gcr
pkgname=(gcr gcr-docs)
pkgver=3.41.1
pkgrel=4
pkgname=(
gcr
gcr-docs
)
pkgver=3.41.2
pkgrel=1
pkgdesc="A library for bits of crypto UI and parsing"
url="https://gitlab.gnome.org/GNOME/gcr"
arch=(x86_64)
license=(GPL2)
license=(LGPL-2.1-or-later)
depends=(
gtk3
libgcrypt
@ -24,7 +27,7 @@ makedepends=(
meson
vala
)
_commit=664f8d8619cc6d661bd863107824efbac383a9bf # tags/3.41.1^0
_commit=cd63e8a0378e13ba0aa15c2a68d1070fa62e6532 # tags/3.41.2^0
source=("git+https://gitlab.gnome.org/GNOME/gcr.git#commit=$_commit")
b2sums=('SKIP')
@ -38,8 +41,12 @@ prepare() {
}
build() {
# ssh-agent moved to gcr-4
arch-meson gcr build -D ssh_agent=false
local meson_options=(
# ssh-agent moved to gcr-4
-D ssh_agent=false
)
arch-meson gcr build "${meson_options[@]}"
meson compile -C build
}

View File

@ -6,7 +6,7 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=namcap
pkgver=3.5.1
pkgver=3.5.2
pkgrel=01
pkgdesc='A Pacman package analyzer w/o systemd'
url="https://gitlab.archlinux.org/pacman/$pkgname"
@ -44,8 +44,8 @@ license=(GPL-2.0-or-later)
validpgpkeys=(9F377DDB6D3153A48EB3EB1E63CC496475267693 # caleb@alerque.com
CCB34EBBB9541EF3F7B366C1D4A753468A5A5B67) # alerque@archlinux.org
sha256sums=(f16d2303f2b3f7d44b70d48e1b42a31cac89266b492d6befbde30e73762c333e # namcap-3.5.1.tar.bz2
807838d3a79c650c64885948715426190c96545797849de984e709cf55d5d91e) # namcap-3.5.1.tar.bz2.asc
sha256sums=(fbd3b1f0777fe457afd3dbb1f55de8adbaeb50257492626bcffd1a3eef67d618 # namcap-3.5.2.tar.bz2
6e7a7c9576dfa7f75c2434894ed90de3e1366c4a7ea646f3a631d33bbc0acd3e) # namcap-3.5.2.tar.bz2.asc
## a1af4a902ff96d8ca21143e94be830e3e50b5be663c7ec63aff8364530f6a5b1 namcap-3.5.1-01-x86_64.pkg.tar.lz
## fd75d7417497712b94fd82e0f924e7207745ce7612705ebe2cb922c33ae8a678 namcap-3.5.2-01-x86_64.pkg.tar.lz

View File

@ -3,7 +3,7 @@
# Contributor: Hugo Doria <hugo@archlinux.org>
pkgname=namcap
pkgver=3.5.1
pkgver=3.5.2
pkgrel=1
pkgdesc='A Pacman package analyzer'
arch=(any)
@ -24,7 +24,7 @@ makedepends=(python-{build,installer,wheel}
python-setuptools)
_archive="$pkgname-$pkgver"
source=("$url/-/releases/$pkgver/downloads/$_archive.tar.bz2"{,.asc})
sha256sums=('f16d2303f2b3f7d44b70d48e1b42a31cac89266b492d6befbde30e73762c333e'
sha256sums=('fbd3b1f0777fe457afd3dbb1f55de8adbaeb50257492626bcffd1a3eef67d618'
'SKIP')
validpgpkeys=(9F377DDB6D3153A48EB3EB1E63CC496475267693 # caleb@alerque.com
CCB34EBBB9541EF3F7B366C1D4A753468A5A5B67) # alerque@archlinux.org

View File

@ -7,6 +7,6 @@ python-wheel
python-setuptools
python-pytest
python-six
python-license-expression