void-packages/srcpkgs/libvterm/template
2020-04-02 11:21:56 +02:00

36 lines
979 B
Bash

# Template file for 'libvterm'
pkgname=libvterm
version=0.1.3
revision=1
build_style=gnu-makefile
make_install_target="install-lib install-inc"
hostmakedepends="libtool perl pkg-config"
short_desc="Abstract VT220/xterm/ECMA-48 emulation library"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="MIT"
homepage="http://www.leonerd.org.uk/code/libvterm"
distfiles="https://launchpad.net/libvterm/trunk/v${version%.*}/+download/libvterm-${version}.tar.gz"
checksum=e41724466a4658e0f095e8fc5aeae26026c0726dce98ee71d6920d06f7d78e2b
post_extract() {
if [ "$CROSS_BUILD" ]; then
cp /usr/bin/libtool .
sed -e "s,CCLD=.*,CCLD=$CC,g;s,CC=.*,CC=$CC,g" -i libtool
sed -e "s,libtool,./libtool,g" -i Makefile
fi
}
post_install() {
vlicense LICENSE
}
libvterm-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}