fd9ff4fedf
To simplify testing for the currently used gcc version introduce global environment variables to avoid running `gcc --version`.
59 lines
1.7 KiB
Bash
59 lines
1.7 KiB
Bash
# Template file for 'network-manager-applet'
|
|
pkgname=network-manager-applet
|
|
version=1.0.10
|
|
revision=3
|
|
lib32disabled=yes
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --without-bluetooth
|
|
--with-modem-manager-1 --disable-migration
|
|
$(vopt_enable gir introspection)"
|
|
hostmakedepends="pkg-config intltool glib-devel dbus-glib-devel
|
|
$(vopt_if gir gobject-introspection)"
|
|
makedepends="
|
|
dbus-glib-devel libgnome-keyring-devel libsecret-devel
|
|
NetworkManager-devel gtk+3-devel libnotify-devel
|
|
ModemManager-devel polkit-devel libgudev-devel iso-codes"
|
|
depends="iso-codes NetworkManager>=1.0 hicolor-icon-theme"
|
|
short_desc="NetworkManager panel applet for GNOME"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.gnome.org/projects/NetworkManager/"
|
|
license="GPL-2"
|
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
|
checksum=b045ac3eaa68ccbbefe91510ad67b4002a7e09d1e5ce1c4bf9a67619bd2cf0eb
|
|
|
|
# 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
|
|
}
|
|
}
|