summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBrian "Beej Jorgensen" Hall2018-06-09 14:48:47 -0700
committerBrian "Beej Jorgensen" Hall2018-06-09 14:48:47 -0700
commit5a9aa5e480d4684524ada1d40ccf0d2425074283 (patch)
tree4ae82bcb5b2cee2d8f2dba9cb438711c2a769359 /PKGBUILD
parent7a79eb87d781fc0098fdc8cbdde6a447926ff31a (diff)
downloadaur-termcap.tar.gz
roll in changes from Sandmann and haawda
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 12 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a9a68e4e09f..6c55abc8c54 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,30 +2,31 @@
# Maintainer: Ivan c00kiemon5ter Kanakarakis <ivan.kanak@gmail.com>
pkgname="termcap"
pkgver="1.3.1"
-pkgrel=4
+pkgrel=6
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")
-depends=()
-makedepends=()
-optdepends=()
-provides=()
-conflicts=("termcap")
source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('91a0e22e5387ca4467b5bcb18edf1c51b930262fd466d5fda396dd9d26719100')
build() {
- gcc -fPIC -c "${srcdir}/${pkgname}-${pkgver}/${pkgname}.c" \
- -o "${srcdir}"/"${pkgname}.o" \
- -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 || return 1
+ cd "${srcdir}/${pkgname}-${pkgver}/"
+
+ gcc -fPIC -c "${pkgname}.c" -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1
+ gcc -fPIC -c tparam.c -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1
+ gcc -fPIC -c version.c -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1
+
gcc -shared -Wl,-soname,"lib${pkgname}.so" \
- -o "${srcdir}/lib${pkgname}.so.${pkgver}" "${srcdir}/${pkgname}.o" || return 1
+ -o "lib${pkgname}.so.${pkgver}" "${pkgname}.o" tparam.o version.o
}
package() {
- install -D -m755 "${srcdir}/lib${pkgname}.so.${pkgver}" "${pkgdir}/usr/lib/lib${pkgname}.so.${pkgver}"
cd "${srcdir}/${pkgname}-${pkgver}"
+
+ install -D -m755 "lib${pkgname}.so.${pkgver}" "${pkgdir}/usr/lib/lib${pkgname}.so.${pkgver}"
+ ln -s "${pkgdir}/usr/lib/lib${pkgname}.so.${pkgver}" "${pkgdir}/usr/lib/lib${pkgname}.so"
+
for infofile in termcap.info*
do install -D -m644 "${srcdir}/${pkgname}-${pkgver}/${infofile}" "${pkgdir}/usr/share/info/${infofile}"
done