# Template file for 'cinnamon-screensaver'
pkgname=cinnamon-screensaver
version=4.0.3
revision=1
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="gettext-devel glib-devel gnome-common gobject-introspection
 intltool libtool pkg-config python3-devel"
makedepends="cinnamon-desktop-devel dbus-glib-devel libXxf86misc-devel
 libgnomekbd-devel pam-devel python3-devel webkit2gtk-devel"
depends="cinnamon-translations hicolor-icon-theme python3-gobject
 python3-setproctitle python3-xapp xapps"
conf_files="/etc/pam.d/${pkgname}"
short_desc="The Cinnamon screensaver"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later, LGPL-2.0-or-later"
homepage="https://developer.linuxmint.com/projects/cinnamon-projects.html/"
distfiles="https://github.com/linuxmint/${pkgname}/archive/${version}.tar.gz"
checksum=0835111cf01b25447076177944a977cebfe995b5ce3dcfe0fba841141ebbdaca

nocross=https://build.voidlinux.eu/builders/armv7l_builder/builds/28904/steps/shell_3/logs/stdio
pycompile_version="$py3_ver"
pycompile_dirs="/usr/share/cinnamon-screensaver"

do_check() {
	:
}

pre_configure() {
	NOCONFIGURE=1 ./autogen.sh
}

post_install() {
	vinstall ${FILESDIR}/${pkgname}.pam 644 etc/pam.d ${pkgname}
}