void-packages/srcpkgs/kfilemetadata5/template
2019-02-25 03:20:27 -03:00

30 lines
1,003 B
Bash

# Template file for 'kfilemetadata5'
pkgname=kfilemetadata5
version=5.55.0
revision=3
wrksrc="${pkgname%5}-${version}"
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules pkg-config"
makedepends="karchive-devel ki18n-devel poppler-qt5-devel
taglib-devel exiv2-devel ffmpeg-devel attr-devel ebook-tools-devel"
short_desc="Simple library for extracting the text and metadata"
maintainer="John <johnz@posteo.net>"
license="LGPL-2.1-or-later"
homepage="https://projects.kde.org/projects/frameworks/kfilemetadata"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname%5}-${version}.tar.xz"
checksum=b1a62f1d62ad0e45f523cbf96b872d3617a65c193483f7a5cbc6b8e48c11123b
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-qmake python"
fi
kfilemetadata5-devel_package() {
short_desc+=" - development"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}