add smartcard component

This commit is contained in:
Ertuğrul Erata
2019-05-21 19:13:22 +03:00
parent 0fbf5e3e0e
commit aac49137b0
12 changed files with 405 additions and 19 deletions
+52
View File
@@ -0,0 +1,52 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
#USBDROPDIR = "/usr/lib%s/pcsc/drivers" % ("32" if \
# get.buildTYPE() == "emul32" else "")
USBDROPDIR = "/usr/lib/pcsc/drivers"
def setup():
options = "--enable-usbdropdir=%s \
--disable-libsystemd \
--disable-dependency-tracking \
--disable-static" % USBDROPDIR
"""
if get.buildTYPE() == "emul32":
options += " --prefix=/emul32 \
--libdir=/usr/lib32"
shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
"""
autotools.autoreconf("-fi")
autotools.configure(options)
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodir(USBDROPDIR)
"""
if get.buildTYPE() == "emul32":
pisitools.removeDir("/emul32")
return
"""
pisitools.dodir("/etc/reader.conf.d")
pisitools.dodoc("AUTHORS", "ChangeLog", "HELP", "NEWS",
"README", "SECURITY", "doc/README.DAEMON")