actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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. def setup():
  10. autotools.configure("--enable-twinserial \
  11. --enable-serialconfdir=/etc/reader.conf.d \
  12. --sysconfdir=/etc \
  13. --disable-static \
  14. --disable-dependency-tracking")
  15. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  16. def build():
  17. autotools.make()
  18. def install():
  19. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  20. pisitools.insinto("/etc/", "src/Info.plist", "libccid_Info.plist")
  21. pisitools.insinto("/etc/udev/rules.d/", "src/92_pcscd_ccid.rules", "92-pcsc-ccid.rules")
  22. pisitools.dosed("%s/etc/udev/rules.d/92-pcsc-ccid.rules" % get.installDIR(), "Kobil_mIDentity_switch", deleteLine = True)
  23. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README*")