actions.py 681 B

123456789101112131415161718192021222324
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import get
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. def build():
  10. autotools.make("prefix=/usr")
  11. # remove bundled packages, use our system libraries
  12. shelltools.system("rm -rf thirdparty/{curl,freeglut,freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib}")
  13. def install():
  14. autotools.rawInstall("DESTDIR=%s prefix=/usr" % get.installDIR())
  15. pisitools.remove("/usr/lib/*.a")
  16. pisitools.dodoc("README", "COPYING")