# Template file for 'jp2a'
pkgname=jp2a
version=1.3.3
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libjpeg-turbo-devel libpng-devel libcurl-devel ncurses-devel
 libwebp-devel libexif-devel"
short_desc="JPEG image to ASCII art converter"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://github.com/Talinx/jp2a"
changelog="https://raw.githubusercontent.com/Talinx/jp2a/refs/heads/master/ChangeLog"
distfiles="https://github.com/Talinx/jp2a/releases/download/v${version}/jp2a-${version}.tar.gz"
checksum=733a4dfc847ab9b020b26f7b90dbe3ff1dce7489a91bfc06fe8fd38764e9e246

post_install() {
	#move bash completions into the correct dir
	vmkdir usr/share/bash-completion/completions
	mv ${DESTDIR}/etc/bash_completion.d/* \
		${DESTDIR}/usr/share/bash-completion/completions
}
