# Template file for 'libvterm' pkgname=libvterm version=0.0.20151005 revision=1 _commit=fdb97e8c64da797ce252213657188f399b72246f wrksrc="${pkgname}-${_commit}" 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 " license="MIT" homepage="http://www.leonerd.org.uk/code/libvterm" distfiles="https://github.com/neovim/${pkgname}/archive/${_commit}.tar.gz>${pkgname}-${version}.tar.gz" checksum=402e5bf2561fd934507c5bfb1a49829eb56c09d4d660e2e148c688d0afc78962 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 } }