45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
# Template file for 'libnma'
|
|
pkgname=libnma
|
|
version=1.8.38
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Dlibnma_gtk4=true"
|
|
hostmakedepends="gettext glib-devel gtk-doc pkg-config vala"
|
|
makedepends="gcr-devel gtk+3-devel gtk4-devel iso-codes
|
|
mobile-broadband-provider-info NetworkManager-devel"
|
|
depends="NetworkManager iso-codes"
|
|
short_desc="NetworkManager panel applet for GNOME - runtime library"
|
|
maintainer="cinerea0 <cinerea0@protonmail.com>"
|
|
license="GPL-2.0-only, LGPL-2.1-or-later"
|
|
homepage="https://gitlab.gnome.org/GNOME/libnma"
|
|
changelog="https://gitlab.gnome.org/GNOME/libnma/-/raw/main/NEWS"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=5ed93eae18456ff5a8a4f408178c1ee198dc8d3a46c65f9075b101916e64e8b4
|
|
replaces="libnm-gtk>=0"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" -Dgtk_doc=false"
|
|
hostmakedepends+=" libnma-devel"
|
|
fi
|
|
|
|
post_install() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
vmkdir usr/share/gtk-doc/html 0755
|
|
vcopy /usr/share/gtk-doc/html/libnma usr/share/gtk-doc/html
|
|
fi
|
|
}
|
|
|
|
libnma-devel_package() {
|
|
short_desc+=" - library development files"
|
|
depends="${sourcepkg}>=${version}_${revision} NetworkManager-devel"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/include
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
vmove usr/share/gtk-doc
|
|
}
|
|
}
|