void-packages/srcpkgs/network-manager-applet/template

58 lines
1.8 KiB
Bash

# Template file for 'network-manager-applet'
pkgname=network-manager-applet
version=1.8.16
revision=1
build_style=gnu-configure
configure_args="--disable-static --without-selinux $(vopt_enable gir introspection)"
hostmakedepends="dbus-glib-devel glib-devel intltool pkg-config
$(vopt_if gir 'gobject-introspection')"
makedepends="ModemManager-devel NetworkManager-devel iso-codes jansson-devel
libgnome-keyring-devel libgudev-devel libnotify-devel libsecret-devel
polkit-devel mobile-broadband-provider-info"
depends="NetworkManager hicolor-icon-theme iso-codes"
short_desc="NetworkManager panel applet for GNOME"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="http://www.gnome.org/projects/NetworkManager/"
changelog="https://raw.githubusercontent.com/NetworkManager/network-manager-applet/master/NEWS"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=62a3a1d1a810d286f44484b8405cbacbe17f44b050fffce6ae3a51ef099cb452
lib32disabled=yes
# Package build options
build_options="gir"
# Enable gir for non-cross builds
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir"
fi
CFLAGS="-O2 -pipe"
if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then
# Fix gcc6 build error for warning -Wmisleading-indentation
CFLAGS+=" -Wno-error=misleading-indentation"
fi
libnm-gtk_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0
fi
}
}
network-manager-applet-devel_package() {
depends="gtk+3-devel NetworkManager-devel>=1.0
libnm-gtk>=${version}_${revision}"
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
}
}