void-packages/srcpkgs/gnome-menus/template
2019-01-16 15:23:05 -02:00

32 lines
938 B
Bash

# Template file for 'gnome-menus'
pkgname=gnome-menus
version=3.31.3
revision=1
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config intltool $(vopt_if gir gobject-introspection)"
makedepends="libglib-devel"
short_desc="GNOME menu specifications"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/gnome-menus"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=fce1525ad98cc4f91bc0d14c3eccb21665922d298a76921a9ac1af1238a82586
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir"
fi
gnome-menus-devel_package() {
depends="glib-devel gnome-menus>=${version}"
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
}
}