diff --git a/srcpkgs/enlightenment/template b/srcpkgs/enlightenment/template index b9276b130d3..08b6f78e937 100644 --- a/srcpkgs/enlightenment/template +++ b/srcpkgs/enlightenment/template @@ -4,7 +4,7 @@ _distver=0.19.0 _patchver=alpha1 version=${_distver}${_patchver} wrksrc="${pkgname}-${_distver}-${_patchver}" -revision=1 +revision=2 build_style=gnu-configure configure_args="--enable-pam --disable-bluez4" hostmakedepends="pkg-config efl>=1.10" @@ -41,6 +41,13 @@ else fi post_install() { + if [ -z "$build_option_systemd" ]; then + # Use our native tools to shutdown/suspend. + sed -i 's/^action:.*halt.*/action: halt shutdown -h now/g' ${DESTDIR}/etc/${pkgname}/sysactions.conf + sed -i 's/^action:.*reboot.*/action: reboot shutdown -r now/g' ${DESTDIR}/etc/${pkgname}/sysactions.conf + sed -i 's/^action:.*suspend.*/action: suspend zzz/g' ${DESTDIR}/etc/${pkgname}/sysactions.conf + sed -i 's/^action:.*hibernate.*/action: hibernate ZZZ/g' ${DESTDIR}/etc/${pkgname}/sysactions.conf + fi vmkdir usr/share/licenses/${pkgname} install -m644 COPYING* ${DESTDIR}/usr/share/licenses/${pkgname} vinstall ${FILESDIR}/e-applications.menu 644 etc/xdg/menus