void-packages/srcpkgs/nautilus/template
2018-11-01 19:19:53 +01:00

42 lines
1.3 KiB
Bash

# Template file for 'nautilus'
pkgname=nautilus
version=3.30.3
revision=1
build_style=meson
configure_args="-Dtests=headless -Dintrospection=$(vopt_if gir true false)"
hostmakedepends="glib-devel libxslt pkg-config $(vopt_if gir 'gobject-introspection')"
makedepends="exempi-devel gnome-autoar-devel gnome-desktop-devel gtk+3-devel
libexif-devel libgexiv2-devel libglib-devel libnotify-devel libseccomp-devel
libX11-devel libxml2-devel tracker-devel"
depends="desktop-file-utils gsettings-desktop-schemas hicolor-icon-theme"
checkdepends="tracker"
short_desc="The GNOME file manager"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Nautilus"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=a4baf342b5162d0c6d0a974e6589e596fe80b1e6a0f86415daaa45be5298b6b5
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
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"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}