actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. autotools.configure("\
  12. --with-html-dir=/usr/share/doc/%s/html \
  13. --with-temp-mount-dir=/run/libgpod \
  14. --without-hal \
  15. --without-mono \
  16. --disable-gtk-doc \
  17. --disable-static \
  18. --enable-udev \
  19. " % get.srcNAME())
  20. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. # For temporary mounts
  26. pisitools.dodir("/run/libgpod")
  27. # rm "/usr/lib/pkgconfig/libgpod-sharp.pc"
  28. pisitools.remove("/usr/lib/pkgconfig/libgpod-sharp.pc")
  29. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README*")