actions.py 765 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env 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 cmaketools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  12. -DMZ_LIB_SUFFIX='-ng' \
  13. -DBUILD_SHARED_LIBS=ON")
  14. def build():
  15. # shelltools.system("cmake -B build -S minizip-4.0.0")
  16. cmaketools.make()
  17. def install():
  18. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
  19. # pisitools.remove("/usr/include/minizip/zip.h")
  20. # pisitools.remove("/usr/include/minizip/unzip.h")
  21. pisitools.dodoc("LICENSE", "README*")