1 # Maintainer: Ivan c00kiemon5ter Kanakarakis <ivan.kanak@gmail.com>
5 pkgdesc="enables programs to use display computer terminals in a device-independent manner"
7 url="http://www.catb.org/~esr/terminfo/"
14 source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz")
15 sha256sums=('91a0e22e5387ca4467b5bcb18edf1c51b930262fd466d5fda396dd9d26719100')
18 gcc -fPIC -c "${srcdir}/${pkgname}-${pkgver}/${pkgname}.c" \
19 -o "${srcdir}"/"${pkgname}.o" \
20 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 || return 1
21 gcc -shared -Wl,-soname,"lib${pkgname}.so" \
22 -o "${srcdir}/lib${pkgname}.so.${pkgver}" "${srcdir}/${pkgname}.o" || return 1
26 install -D -m755 "${srcdir}/lib${pkgname}.so.${pkgver}" "${pkgdir}/usr/lib/lib${pkgname}.so.${pkgver}"
27 cd "${srcdir}/${pkgname}-${pkgver}"
28 for infofile in termcap.info*
29 do install -D -m644 "${srcdir}/${pkgname}-${pkgver}/${infofile}" "${pkgdir}/usr/share/info/${infofile}"