12345678910111213141516171819202122232425262728293031323334353637383940 |
- #!/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 autotools
- from pisi.actionsapi import pisitools
- from pisi.actionsapi import get
- from pisi.actionsapi import shelltools
- def setup():
- pisitools.dosed("configure.ac", "systemd", deleteLine=True)
- shelltools.system("NOCONFIGURE=1 ./autogen.sh")
- autotools.configure("--disable-static \
- --libexecdir=/usr/bin/mate-control-center \
- --sbindir=/usr/bin \
- --with-gnu-ld \
- --disable-systemd \
- --disable-update-mimedb \
- --disable-schemas-compile")
- # fix unused-direct-shlib-dependency
- pisitools.dosed("libtool"," -shared ", " -Wl,-O1--as-needed -shared ")
- def build():
- autotools.make()
- def install():
- #pisitools.dodir("/usr/lib")
- autotools.rawInstall("DESTDIR=%s" % get.installDIR())
- pisitools.dodoc("README", "COPYING", "NEWS", "ChangeLog", "AUTHORS", "TODO")
- pisitools.remove("/usr/share/applications/mimeinfo.cache")
|