void-packages/srcpkgs/oblogout/template

27 lines
895 B
Bash

# Template file for 'oblogout'
pkgname=oblogout
version=0.2
revision=2
noarch=yes
wrksrc="${pkgname}"
build_style=python2-module
conf_files="/etc/oblogout.conf"
pycompile_module="oblogout"
hostmakedepends="intltool python-distutils-extra"
depends="pygtk python-dbus python-Pillow"
short_desc="Logout script designed to be used in a Openbox desktop environment"
maintainer="Orphaned <orphan@voidlinux.eu>"
license="GPL-2"
homepage="https://launchpad.net/oblogout"
distfiles="https://launchpad.net/oblogout/${version}/${version}.0/+download/${pkgname}-${version}.tar.bz2"
checksum=f80003b85e9f4f1c588675453ea03f40a86fc50546d509ceb69706eb045782a9
pre_configure() {
sed -i 's/fromstring/frombytes/' oblogout/__init__.py
sed -i 's|usehal = true|usehal = false|' data/oblogout.conf
sed -i 's|pmi action hibernate|ZZZ|' data/oblogout.conf
sed -i 's|pmi action suspend|zzz|' data/oblogout.conf
}