libc-client

This commit is contained in:
Rmys
2018-09-09 15:23:29 +03:00
parent 3b276fd746
commit ced4b7230a
2 changed files with 29 additions and 11 deletions
+17 -7
View File
@@ -1,20 +1,30 @@
#!/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
# Licensed under the GNU General Public License, version 2
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
autotools.configure("--disable-static --enable-shared")
#shelltools.makedirs("build")
#shelltools.cd("build")
cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib")
def build():
autotools.make()
#shelltools.cd("build")
cmaketools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
#shelltools.cd("build")
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
#shelltools.cd("..")
pisitools.dodoc("README*", "TODO*", "NEWS*", "COPYING")
pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS", "README", "THANKS" , "TODO")