37 lines
958 B
Bash
37 lines
958 B
Bash
# Template file for 'libvterm'
|
|
pkgname=libvterm
|
|
version=0.3.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="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://www.leonerd.org.uk/code/libvterm"
|
|
distfiles="https://www.leonerd.org.uk/code/libvterm/libvterm-${version}.tar.gz"
|
|
checksum=09156f43dd2128bd347cbeebe50d9a571d32c64e0cf18d211197946aff7226e0
|
|
|
|
post_extract() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
cp /usr/bin/libtool .
|
|
vsed -e "s,CCLD=.*,CCLD=$CC,g;s,CC=.*,CC=$CC,g" -i libtool
|
|
vsed -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
|
|
}
|
|
}
|