34 lines
905 B
Bash
34 lines
905 B
Bash
# Template file for 'exiv2'
|
|
pkgname=exiv2
|
|
version=0.27.3
|
|
revision=1
|
|
wrksrc="exiv2-${version}-Source"
|
|
build_style=cmake
|
|
configure_args="-DEXIV2_BUILD_SAMPLES=OFF"
|
|
makedepends="zlib-devel expat-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://www.exiv2.org/builds/exiv2-${version}-Source.tar.gz"
|
|
checksum=a79f5613812aa21755d578a297874fb59a85101e793edc64ec2c6bd994e3e778
|
|
|
|
pre_configure() {
|
|
case "$XBPS_TARGET_ARCH" in
|
|
"x86_64*") ;;
|
|
"i686*") ;;
|
|
*) vsed -i cmake/compilerFlags.cmake -e 's/-fcf-protection//' ;;
|
|
esac
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|