updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / termcap / PKGBUILD
blob43aa43801afcc58d341ab71652cb02a4f265a15e
1 # Maintainer: Ivan c00kiemon5ter Kanakarakis <ivan.kanak@gmail.com>
2 pkgname="termcap"
3 pkgver="1.3.1"
4 pkgrel=4
5 pkgdesc="enables programs to use display computer terminals in a device-independent manner"
6 arch=('i686' 'x86_64')
7 url="http://www.catb.org/~esr/terminfo/"
8 license=("GPL")
9 depends=()
10 makedepends=()
11 optdepends=()
12 provides=()
13 conflicts=("termcap")
14 source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz")
15 sha256sums=('91a0e22e5387ca4467b5bcb18edf1c51b930262fd466d5fda396dd9d26719100')
17 build() {
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
25 package() {
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}"
30     done