void-packages/srcpkgs/exiv2/template

35 lines
966 B
Bash

# Template file for 'exiv2'
pkgname=exiv2
version=0.27.6
revision=1
build_style=cmake
configure_args="-DEXIV2_BUILD_SAMPLES=OFF -DEXIV2_ENABLE_BMFF=ON"
makedepends="zlib-devel expat-devel"
checkdepends="gtest-devel"
short_desc="Image metadata manipulation"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.exiv2.org"
distfiles="https://github.com/Exiv2/exiv2/releases/download/v${version}/exiv2-${version}-Source.tar.gz"
checksum=4c192483a1125dc59a3d70b30d30d32edace9e14adf52802d2f853abf72db8a6
if [ -n "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -DEXIV2_BUILD_UNIT_TESTS=ON"
fi
if [ -n "$XBPS_CCACHE" ]; then
configure_args+=" -DBUILD_WITH_CCACHE=ON"
fi
exiv2-devel_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}