actions.py 758 B

123456789101112131415161718192021222324252627282930313233
  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-nls',
  11. ' --enable-vcut',
  12. ' --enable-ogg123',
  13. ' --with-flac',
  14. ' --with-kate',
  15. ' --with-speex',
  16. ' --docdir=/%s/%s' % (get.docDIR(), get.srcNAME())
  17. ])
  18. def setup():
  19. autotools.configure(j)
  20. def build():
  21. autotools.make()
  22. def install():
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. pisitools.removeDir("/usr/share/doc")
  25. pisitools.dodoc("CHANGES", "COPYING", "AUTHORS", "README", "ogg123/ogg123rc-example")