Files
2025-02-23 19:11:26 +03:00

41 lines
1.3 KiB
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
shelltools.system("sed -i 's/icu-i18n/icu-uc &/' configure")
shelltools.export("OPTIMIZER", "%s" % get.CFLAGS())
shelltools.export("DEBUG", "-DNDEBUG")
autotools.configure("--enable-readline=yes \
root_libdir=/lib \
--enable-blkid=yes")
def build():
autotools.make()
def install():
autotools.rawInstall("DIST_ROOT=%s" % get.installDIR())
autotools.rawInstall("DIST_ROOT=%s" % get.installDIR(), "install-dev")
# Needed for building the QA testsuite
#autotools.rawInstall("DIST_ROOT=%s" % get.installDIR(), "install-qa")
# Nuke static libraries
#pisitools.remove("/lib/libhandle.a")
#pisitools.remove("/lib/libhandle.la")
#pisitools.remove("/usr/lib/*.a")
# Fix the symlink
#pisitools.remove("/usr/lib/libhandle.so")
#pisitools.dosym("/lib/libhandle.so.1", "/usr/lib/libhandle.so")
# Set +x bit for the library
shelltools.chmod("%s/usr/lib/libhandle.so.*.*.*" % get.installDIR(), 0755)