void-packages/srcpkgs/gnome-bluetooth1/template

42 lines
1.4 KiB
Bash

# Template file for 'gnome-bluetooth1'
pkgname=gnome-bluetooth1
version=3.34.5
revision=1
build_helper="gir"
build_style=meson
configure_args="-Dgtk_doc=false -Dintrospection=$(vopt_if gir true false)"
hostmakedepends="pkg-config gettext itstool $(vopt_if gir gobject-introspection) glib-devel"
makedepends="libXi-devel gtk+3-devel libnotify-devel dconf-devel
gvfs-devel bluez eudev-libudev-devel libcanberra-devel"
depends="bluez>=5 dconf>=0.20 gvfs>=1.20 hicolor-icon-theme desktop-file-utils"
checkdepends="python3-dbus"
short_desc="GNOME Bluetooth Subsystem"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/GnomeBluetooth"
distfiles="${GNOME_SITE}/gnome-bluetooth/${version%.*}/gnome-bluetooth-${version}.tar.xz"
checksum=6c949e52c8becc2054daacd604901f66ce5cf709a5fa91c4bb7cacc939b53ea9
build_options="gir"
build_options_default="gir"
post_install() {
# conflicts with gnome-bluetooth
rm ${DESTDIR}/usr/bin/bluetooth-sendto
rm ${DESTDIR}/usr/share/applications/bluetooth-sendto.desktop
rm ${DESTDIR}/usr/share/man/man1/bluetooth-sendto.1
}
gnome-bluetooth1-devel_package() {
depends="glib-devel gtk+3-devel ${sourcepkg}>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}