46 lines
1.6 KiB
Bash
46 lines
1.6 KiB
Bash
# Template file for 'libappindicator'
|
|
pkgname=libappindicator
|
|
version=12.10.0
|
|
revision=3
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--with-gtk=3"
|
|
hostmakedepends="pkg-config python glib-devel"
|
|
makedepends="gtk+3-devel glib-devel glib-networking libdbusmenu-glib-devel
|
|
libdbusmenu-gtk3-devel libindicator-devel dbus-glib-devel python-devel
|
|
python-gobject2-devel pygtk-devel"
|
|
short_desc="Library to allow applications to export a menu"
|
|
maintainer="Toyam Cox <Vaelatern@gmail.com>"
|
|
license="LGPL-2.1"
|
|
homepage="https://launchpad.net/libappindicator"
|
|
distfiles="https://launchpad.net/libappindicator/${version%.*}/${version}/+download/libappindicator-${version}.tar.gz"
|
|
checksum=d5907c1f98084acf28fd19593cb70672caa0ca1cf82d747ba6f4830d4cc3b49f
|
|
|
|
# since this package depends on features that have already been removed in
|
|
# gtk+4, we need to ignore the depreciated problem. GTK is going away from the
|
|
# idea of app indicators in taskbars.
|
|
CFLAGS="-Wno-deprecated-declarations -Wno-error=incompatible-pointer-types"
|
|
|
|
# Avoid errors for macros deprecated since glib-2.58 */
|
|
CFLAGS+=" -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56"
|
|
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
sed -i 's:^py_prefix=`:py_prefix='"$XBPS_CROSS_BASE"'`:' configure
|
|
fi
|
|
}
|
|
|
|
libappindicator-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision} gtk+3-devel libdbusmenu-glib-devel"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/*.a
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/gtk-doc
|
|
}
|
|
}
|