actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. USBDROPDIR = "/usr/lib/pcsc/drivers"
  11. def setup():
  12. options = "--enable-usbdropdir=%s \
  13. --disable-libsystemd \
  14. --disable-static" % USBDROPDIR
  15. autotools.autoreconf("-fi")
  16. autotools.configure(options)
  17. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  18. def build():
  19. autotools.make()
  20. def install():
  21. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. pisitools.dodir(USBDROPDIR)
  23. pisitools.dodir("/etc/reader.conf.d")
  24. #for fixing UYAP e-Sign problem
  25. pisitools.dodir("/usr/lib/x86_64-linux-gnu/")
  26. libs=["libpcsclite.so","libpcsclite.so.1", "libpcsclite.so.1.0.0"]
  27. for i in libs:
  28. pisitools.dosym("/usr/lib/%s" % i, "/usr/lib/x86_64-linux-gnu/%s" % i)
  29. pisitools.dodoc("AUTHORS", "ChangeLog", "HELP", "NEWS",
  30. "README", "SECURITY", "doc/README.*")