void-packages/srcpkgs/qtkeychain-qt5/template

38 lines
1002 B
Bash

# Template file for 'qtkeychain-qt5'
pkgname=qtkeychain-qt5
version=0.11.1
revision=1
build_style=cmake
hostmakedepends="pkg-config kwallet"
makedepends="libsecret-devel qt5-tools-devel"
short_desc="Platform-independent Qt5 API for storing passwords securely"
maintainer="yopito <pierre.bourgin@free.fr>"
license="BSD-2-Clause"
homepage="https://github.com/frankosterfeld/qtkeychain"
distfiles="https://github.com/frankosterfeld/${pkgname%-*}/archive/v${version}.tar.gz"
checksum=77fc6841c1743d9e6bd499989481cd9239c21bc9bf0760d41a4f4068d2f0a49d
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-tools-devel"
fi
post_patch() {
# ensure it's not used (see dedicated patch)
rm org.kde.KWallet.xml
}
post_install() {
vlicense COPYING
}
qtkeychain-qt5-devel_package() {
depends="${sourcepkg}>=${version}_${revision} libsecret-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/*.so
vmove usr/lib/qt5/mkspecs
}
}