diff --git a/programming/misc/termcap/actions.py b/programming/misc/termcap/actions.py new file mode 100644 index 0000000000..ab9ee9c1f1 --- /dev/null +++ b/programming/misc/termcap/actions.py @@ -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") diff --git a/programming/misc/termcap/pspec.xml b/programming/misc/termcap/pspec.xml new file mode 100644 index 0000000000..6f3b7211b3 --- /dev/null +++ b/programming/misc/termcap/pspec.xml @@ -0,0 +1,47 @@ + + + + + termcap + http://www.catb.org/~esr/terminfo/ + + fury + uglyside@yandex.ru + + GPL-2 + library + programming.misc + The terminal feature database used by certain applications. + Enables programs to use display computer terminals in a device-independent manner. + + https://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz + + + + + + + + + + + termcap + + + + + /usr/lib + /usr/share + + + + + + 2022-12-02 + 1.3.1 + First build. + fury + uglyside@yandex.ru + + +