actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. j = ''.join([
  10. ' --enable-gstreamer-thumbnailer',
  11. ' --enable-poppler-thumbnailer',
  12. ' --enable-desktop-thumbnailer',
  13. ' --enable-pixbuf-thumbnailer',
  14. ' --enable-ffmpeg-thumbnailer',
  15. ' --enable-cover-thumbnailer',
  16. ' --enable-font-thumbnailer',
  17. ' --enable-jpeg-thumbnailer',
  18. ' --enable-raw-thumbnailer',
  19. ' --enable-odf-thumbnailer',
  20. ' --enable-xdg-cache',
  21. ' --disable-static',
  22. ' --disable-gepub-thumbnailer '
  23. ])
  24. def setup():
  25. # pisitools.dosed("configure", "libopenraw-gnome-0\.1", "libopenraw-gnome-0.3")
  26. autotools.configure(j)
  27. pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
  28. def build():
  29. autotools.make()
  30. def install():
  31. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  32. # unneeded systemd service file
  33. pisitools.removeDir("/usr/lib/systemd")
  34. pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS")