# Contributor: Leonardo Arena # Maintainer: pkgname=qt5-qtkeychain _realname=qtkeychain pkgver=0.7.0 pkgrel=0 pkgdesc="Qt API to store passwords and other secret data" url="https://github.com/frankosterfeld/qtkeychain" arch="all" license="BSD" depends= depends_dev= makedepends="$depends_dev cmake qt5-qttools-dev" install= subpackages="$pkgname-dev" replaces="qtkeychain" source="$pkgname-$pkgver.tar.gz::https://github.com/frankosterfeld/qtkeychain/archive/v$pkgver.tar.gz" _builddir="$srcdir"/$_realname-$pkgver prepare() { cd "$_builddir" # apply patches here } build() { cd "$_builddir" cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_LIBEXECDIR=lib/${_realname} \ -DCMAKE_BUILD_TYPE=Release make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install # remove the 2 lines below (and this) if there is no init.d script # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname } sha512sums="b7e98fa6c7f6a8a5e4d79468366b30c859db4edf08984d685d2cd8d87c5ab60b5f4769b5af96c8d9ca306111e46a63e4d23be7c07d77d6c3492f2e81ae8cd88b qt5-qtkeychain-0.7.0.tar.gz"