39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# Template file for 'exiv2'
|
|
pkgname=exiv2
|
|
version=0.28.1
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DEXIV2_BUILD_SAMPLES=OFF -DEXIV2_ENABLE_BMFF=ON"
|
|
makedepends="zlib-devel brotli-devel expat-devel inih-devel"
|
|
checkdepends="gtest-devel python3"
|
|
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/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=3078651f995cb6313b1041f07f4dd1bf0e9e4d394d6e2adc6e92ad0b621291fa
|
|
|
|
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
|
|
|
|
pre_check() {
|
|
# https://github.com/Exiv2/exiv2/issues/2762
|
|
rm -f tests/bugfixes/github/test_issue_2427.py
|
|
}
|
|
|
|
exiv2-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/cmake
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|