Files
main/accessibility/brltty/actions.py
T
2021-05-21 15:24:26 +03:00

35 lines
1.1 KiB
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
def setup():
pisitools.flags.add(" -lspeechd")
shelltools.export("PYTHON","/usr/bin/python3")
autotools.configure(" \
--with-tables-directory=/usr/share/brltty \
--with-screen-driver=lx \
--enable-gpm \
--with-espeak \
--with-install-root='%s' \
--with-writable-directory='/run/brltty' \
--disable-java-bindings" % get.installDIR())
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
autotools.rawInstall("DESTDIR=%s install-udev" % get.installDIR())
autotools.rawInstall("DESTDIR=%s install-polkit" % get.installDIR())
#pisitools.removeDir("/run")
pisitools.removeDir("/var")
pisitools.dodoc("LICENSE*", "README")