actions.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. #WorkDir = "lirc-%s" % get.srcVERSION().replace("_", "-")
  10. def setup():
  11. autotools.autoreconf("-fi")
  12. autotools.configure("--localstatedir=/var \
  13. --enable-sandboxed \
  14. --with-systemdsystemunitdir=no \
  15. --enable-shared \
  16. --disable-static \
  17. --disable-debug \
  18. --disable-dependency-tracking \
  19. --with-transmitter \
  20. --with-x \
  21. --with-driver=userspace \
  22. --with-syslog=LOG_DAEMON")
  23. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  24. def build():
  25. autotools.make()
  26. def install():
  27. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  28. pisitools.dobin("contrib/irman2lirc")
  29. # needed for lircd pid
  30. pisitools.dodir("/run/lirc")
  31. # example configs
  32. pisitools.insinto("/etc", "contrib/lircd.conf", "lircd.conf")
  33. pisitools.insinto("/etc", "contrib/lircmd.conf", "lircmd.conf")
  34. pisitools.dohtml("doc/html/*.html")
  35. pisitools.rename("/%s/%s" % (get.docDIR(), get.srcNAME()), "lirc")
  36. pisitools.insinto("/%s/lirc/contrib" % get.docDIR(), "contrib/*")
  37. pisitools.insinto("/lib/udev/rules.d", "contrib/*.rules", "60-lirc.rules")