xfsprogs-5.18.0

This commit is contained in:
Rmys
2022-06-05 12:31:41 +03:00
committed by GitHub
parent fd268ef504
commit c8397c7984
2 changed files with 161 additions and 76 deletions
+25 -6
View File
@@ -2,18 +2,37 @@
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools, pisitools, get
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
autotools.configure("--disable-static")
shelltools.export("OPTIMIZER", "%s" % get.CFLAGS())
shelltools.export("DEBUG", "-DNDEBUG")
autotools.configure("--enable-readline=yes \
--enable-blkid=yes")
def build():
autotools.make()
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
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")
pisitools.dodoc("NEWS")
# 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/lib/libhandle.so.*.*.*" % get.installDIR(), 0755)