Files
main/hardware/printer/splix/actions.py
T
2016-01-11 22:00:56 +02:00

31 lines
894 B
Python
Executable File

#!/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
WorkDir = "splix"
def build():
shelltools.export("OS_CFLAGS", get.CFLAGS())
shelltools.export("OS_LDFLAGS", get.LDFLAGS())
shelltools.export("OS_CXXFLAGS", "%s -fno-strict-aliasing" % get.CXXFLAGS())
shelltools.makedirs("ppd")
autotools.make("-C ppd")
autotools.make("V=1")
def install():
autotools.install("DESTDIR=%s CUPSPPD=/usr/share/cups/model/splix" % get.installDIR())
# Install color profiles
pisitools.insinto("/usr/share/cups/model/samsung/cms", "cms/*")
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README", "THANKS", "TODO")