void-packages/srcpkgs/nemo/template
2018-01-26 18:29:55 +01:00

54 lines
1.7 KiB
Bash

# Template file for 'nemo'
pkgname=nemo
version=3.6.5
revision=1
short_desc="The Cinnamon file manager (nautilus fork)"
build_style=gnu-configure
pycompile_dirs="/usr/share/nemo/actions/myaction.py"
configure_args=" --disable-static --disable-update-mimedb
--disable-gtk-doc-html --disable-schemas-compile --disable-selinux"
hostmakedepends="automake libtool gnome-common pkg-config gobject-introspection
gettext-devel glib-devel intltool xmlto docbook-xml gtk-doc gir-freedesktop
python-polib python-gobject"
makedepends="libexif-devel gvfs-devel dconf-devel exempi-devel tracker-devel
cinnamon-desktop-devel libnotify-devel libxml2-devel xapps-devel"
depends="gvfs dconf cinnamon-translations desktop-file-utils hicolor-icon-theme"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="http://cinnamon.linuxmint.com/"
distfiles="https://github.com/linuxmint/${pkgname}/archive/${version}.tar.gz"
checksum=88df121685cb7bf0464a3ef41cf3734768903e832839cc4fe103c0b53ae187d5
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir"
fi
pre_configure() {
# Fix build
sed -i '/AC_SUBST(DISABLE_DEPRECATED_CFLAGS)/d' configure.ac
# Rename 'Files' app name to avoid having the same as nautilus
sed -i 's/^Name\(.*\)=.*/Name\1=Nemo/' data/nemo.desktop.in.in
NOCONFIGURE=1 ./autogen.sh
}
libnemo_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
nemo-devel_package() {
short_desc+=" - development files"
depends="libglib-devel gtk+3-devel libnemo>=${version}_${revision}"
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
}
}