void-packages/srcpkgs/chafa/template

47 lines
1.3 KiB
Bash

# Template file for 'chafa'
pkgname=chafa
version=1.12.5
revision=1
build_style=gnu-configure
configure_args="--enable-man"
hostmakedepends="automake libtool gtk-doc docbook-xml docbook-xsl libxslt pkg-config"
makedepends="libglib-devel libmagick-devel librsvg-devel libwebp-devel libXext-devel libxml2-devel"
short_desc="Versatile and fast Unicode/ASCII/ANSI graphics renderer"
maintainer="Christian Buschau <christian.buschau@mailbox.org>"
license="LGPL-3.0-or-later"
homepage="https://hpjansson.org/chafa/"
changelog="https://raw.githubusercontent.com/hpjansson/chafa/master/NEWS"
distfiles="https://hpjansson.org/chafa/releases/chafa-${version}.tar.xz"
checksum=0f5490d52a500a6b386f15cc04c6e8702afd0285d422b9575b332e0c683957f2
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*) ;;
*) configure_args+=" ax_cv_gcc_check_x86_cpu_init=no
ax_cv_gcc_check_x86_cpu_supports=no" ;;
esac
pre_configure() {
# needed for the libwebp patch to work
autoreconf -fi
}
libchafa_package() {
short_desc+=" - shared library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
chafa-devel_package() {
depends="libchafa>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/chafa/include
vmove usr/lib/pkgconfig
vmove usr/share/gtk-doc
}
}