34 lines
1010 B
Python
Executable File
34 lines
1010 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("drv")
|
|
|
|
autotools.make("all DRV_ONLY=1")
|
|
|
|
def install():
|
|
autotools.install("DESTDIR=%s DRV_ONLY=1" % get.installDIR())
|
|
autotools.install("DESTDIR=%s -C ppd 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")
|