Created
November 3, 2017 13:09
Star
You must be signed in to star a gist
Updated PKGBUILD script for termcap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much, fixed my problem with OpenWRT ;).