void-packages/srcpkgs/oblogout/template

27 lines
907 B
Bash

# Template file for 'oblogout'
pkgname=oblogout
version=0.2
revision=1
wrksrc="${pkgname}"
noarch=yes
build_style=python2-module
conf_files="/etc/oblogout.conf"
hostmakedepends="intltool python-distutils-extra"
depends="pygtk python-Pillow python-dbus"
short_desc="Logout script designed to be used in a Openbox desktop environment"
maintainer="cr6git <quark6@protonmail.com>"
homepage="https://launchpad.net/oblogout"
license="GPL-2"
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 '0,/on/s//on2/' "oblogout"/*.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
}