void-packages/srcpkgs/oblogout/template
Alessio Sergi d28d6eb3c4 oblogout: remove copy-pasta sed on python shebang
Our hook will take care of it.
2018-04-15 19:41:41 +02:00

26 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="cr6git <quark6@protonmail.com>"
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
}