void-packages/srcpkgs/nautilus/template
2016-09-17 16:34:38 +02:00

47 lines
1.4 KiB
Bash

# Template file for 'nautilus'
pkgname=nautilus
version=3.18.5
revision=2
build_style=gnu-configure
configure_args="--disable-update-mimedb --disable-debug
--disable-schemas-compile --disable-nst-extension $(vopt_enable gir introspection)"
hostmakedepends="pkg-config intltool glib-devel $(vopt_if gir gobject-introspection)"
makedepends="gtk+3-devel libnotify-devel libexif-devel exempi-devel
libxml2-devel tracker-devel gnome-desktop-devel"
depends="hicolor-icon-theme desktop-file-utils gsettings-desktop-schemas>=3.14"
short_desc="The GNOME file manager"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.gnome.org"
license="GPL-2, LGPL-2.1"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=60a927c0522b4cced9d8f62baed2ee5e2fd4305be4523eb5bc44805971a6cc15
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
_gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }')
if [ "${_gccver%%.*}" -gt 5 ]; then
CFLAGS="-Wno-error=format-nonliteral"
fi
libnautilus_package() {
short_desc+=" - shared libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
nautilus-devel_package() {
depends="gtk+3-devel libnautilus>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}