Skip to content

Instantly share code, notes, and snippets.

/PKGBUILD
Created Nov 3, 2017

Embed
What would you like to do?
Updated PKGBUILD script for termcap
# Maintainer: Beej <beej@beej.us>
# Maintainer: Ivan c00kiemon5ter Kanakarakis <ivan.kanak@gmail.com>
pkgname="termcap"
pkgver=1.3.1
pkgrel=5
pkgdesc="Enables programs to use display computer terminals in a device-independent manner"
arch=('i686' 'x86_64')
url="http://www.catb.org/~esr/terminfo/"
license=("GPL")
source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('91a0e22e5387ca4467b5bcb18edf1c51b930262fd466d5fda396dd9d26719100')
build() {
cd "${srcdir}/${pkgname}-${pkgver}/"
gcc -fPIC -c termcap.c -o termcap.o \
-DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1
gcc -fPIC -c tparam.c -o tparam.o \
-DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1
gcc -fPIC -c version.c -o version.o \
-DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1
gcc -shared -Wl,-soname,"lib${pkgname}.so" \
-o "lib${pkgname}.so.${pkgver}" termcap.o tparam.o version.o
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -D -m755 "lib${pkgname}.so.${pkgver}" "${pkgdir}/usr/lib/lib${pkgname}.so.${pkgver}"
for infofile in termcap.info*
do install -D -m644 "${infofile}" "${pkgdir}/usr/share/info/${infofile}"
done
}
@kbabioch

This comment has been minimized.

Copy link

commented Mar 25, 2018

Thank you very much, fixed my problem with OpenWRT ;).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.