Merge pull request #1865 from pullmoll/gnome-menus
gnome-menus: add build option 'gir'
This commit is contained in:
commit
5bb16dbe91
1 changed files with 10 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
||||||
# Template file for 'gnome-menus'
|
# Template file for 'gnome-menus'
|
||||||
pkgname=gnome-menus
|
pkgname=gnome-menus
|
||||||
version=3.10.1
|
version=3.10.1
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static"
|
configure_args="--disable-static"
|
||||||
hostmakedepends="pkg-config intltool gobject-introspection"
|
hostmakedepends="pkg-config intltool $(vopt_if gir gobject-introspection)"
|
||||||
makedepends="libglib-devel"
|
makedepends="libglib-devel"
|
||||||
short_desc="GNOME menu specifications"
|
short_desc="GNOME menu specifications"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
|
@ -13,13 +13,20 @@ license="GPL-2, LGPL-2.1"
|
||||||
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
||||||
checksum=46950aba274c1ad58234374fa9b235258650737307f3bc396af48eb983668a71
|
checksum=46950aba274c1ad58234374fa9b235258650737307f3bc396af48eb983668a71
|
||||||
|
|
||||||
|
build_options="gir"
|
||||||
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
|
build_options_default+=" gir"
|
||||||
|
fi
|
||||||
|
|
||||||
gnome-menus-devel_package() {
|
gnome-menus-devel_package() {
|
||||||
depends="glib-devel gnome-menus>=${version}"
|
depends="glib-devel gnome-menus>=${version}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove usr/share/gir-1.0
|
|
||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
|
if [ -n "$build_option_gir" ]; then
|
||||||
|
vmove usr/share/gir-1.0
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue