void-packages/srcpkgs/libcaca/template

38 lines
992 B
Bash

# Template file for 'libcaca'
pkgname=libcaca
version=0.99.beta20
revision=1
build_style=gnu-configure
configure_args="$(vopt_enable x11)"
hostmakedepends="libtool automake pkg-config"
makedepends="ncurses-devel imlib2-devel $(vopt_if opengl 'libfreeglut-devel')"
short_desc="Graphics library that outputs text instead of pixels"
maintainer="Orphaned <orphan@voidlinux.org>"
license="WTFPL"
homepage="http://caca.zoy.org/wiki/libcaca"
distfiles="https://github.com/cacalabs/libcaca/archive/v${version}.tar.gz"
checksum="3edb8763a8f888ed4d4b85b3a056e81c840d5d27f79bdebc0b991688b23084f2"
build_options="x11 opengl"
pre_configure() {
autoreconf -fi
}
post_install() {
rm ${DESTDIR}/usr/lib/*.la
}
libcaca-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin/caca-config
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/man/man1/caca-config.1
}
}