void-packages/srcpkgs/qrencode/template

35 lines
872 B
Bash

# Template file for 'qrencode'
pkgname=qrencode
version=4.1.1
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libpng-devel"
short_desc="Library for encoding data in a QR Code symbol"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://fukuchi.org/works/qrencode/index.html.en"
distfiles="https://fukuchi.org/works/qrencode/qrencode-${version}.tar.bz2"
checksum=e455d9732f8041cf5b9c388e345a641fd15707860f928e94507b1961256a6923
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" --with-tests"
fi
qrencode-devel_package() {
depends="libqrencode-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
libqrencode_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}