add smartcard component
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user