12345678910111213141516171819202122232425262728293031 |
- #!/usr/bin/python
- # -*- coding: utf-8 -*-
- #
- # Licensed under the GNU General Public License, version 3.
- # See the file https://www.gnu.org/licenses/gpl-3.0.txt
- from pisi.actionsapi import autotools, pisitools, get
- i = ''.join([
- ' --prefix=/usr',
- ' --bindir=/usr/bin',
- ' --includedir=/usr/include/iconv',
- ' --enable-extra-encodings',
- ' --disable-static '
- ])
- def setup():
- autotools.configure(i)
- def build():
- autotools.make()
- def install():
- autotools.rawInstall("DESTDIR=%s" % get.installDIR())
- pisitools.rename("/usr/bin/iconv", "libiconv")
- pisitools.remove("/usr/share/doc/*.html")
- pisitools.removeDir("/usr/share/man/man3")
- pisitools.removeDir("/usr/share/man/man1")
- pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "THANKS")
|