void-packages/srcpkgs/gnome-bluetooth/template
2019-03-27 12:18:04 -03:00

39 lines
1.3 KiB
Bash

# Template file for 'gnome-bluetooth'
pkgname=gnome-bluetooth
version=3.32.1
revision=1
build_helper="gir"
build_style=meson
configure_args="-Dicon-update=false -Dgtk_doc=false
-Dintrospection=$(vopt_if gir true false)"
hostmakedepends="pkg-config intltool 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"
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}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=6441cafd313af94fba28b701698074f97d693b9023788a74e8e6f16f817ba1aa
build_options="gir"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir" ;;
*-musl) ;;
*) build_options_default+=" gir" ;;
esac
gnome-bluetooth-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
}
}