add termcap.

This commit is contained in:
4fury-c3440d8
2022-12-02 11:31:38 +03:00
parent 1f62e44fda
commit 4ecf4acf8a
2 changed files with 70 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/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 shelltools, pisitools
i = ''.join([
' -DHAVE_STRING_H=1',
' -DHAVE_UNISTD_H=1',
' -DSTDC_HEADERS=1 '
])
def build():
shelltools.system("gcc -fPIC -c termcap.c %s" % i)
shelltools.system("gcc -fPIC -c tparam.c %s" % i)
shelltools.system("gcc -fPIC -c version.c %s" % i)
shelltools.system("gcc -shared -Wl,-soname,'libtermcap.so' -o 'libtermcap.so.1.3.1' 'termcap.o' tparam.o version.o")
def install():
pisitools.dolib_so("libtermcap.so.1.3.1")
pisitools.dosym("libtermcap.so.1.3.1", "/usr/lib/libtermcap.so")