54 lines
1.7 KiB
Bash
54 lines
1.7 KiB
Bash
# Template file for 'network-manager-applet'
|
|
pkgname=network-manager-applet
|
|
version=1.8.24
|
|
revision=1
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--disable-static --without-selinux $(vopt_enable gir introspection)"
|
|
hostmakedepends="dbus-glib-devel glib-devel intltool pkg-config"
|
|
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="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://wiki.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=118bbb8a5027634b62e8b45b16ceafce74441529c99bf230654e3bec38f9fbbf
|
|
lib32disabled=yes
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
pre_build() {
|
|
export GIR_EXTRA_LIBS_PATH="${wrksrc}/src/libnma/.libs:${wrksrc}/src/libnm-gtk/.libs"
|
|
}
|
|
|
|
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
|
|
vmove usr/share/gtk-doc
|
|
}
|
|
}
|