Files
haikuports/app-admin/keepassxc/keepassxc-2.1.0.recipe
2017-02-05 12:36:37 +01:00

107 lines
2.8 KiB
Bash

SUMMARY="Qt password manager"
DESCRIPTION="
KeePassXC is an application for people with extremly high demands on secure \
personal data management. It has a light interface, is cross platform and \
published under the terms of the GNU General Public License.
KeePassXC saves many different information e.g. user names, passwords, urls, \
attachments and comments in one single database. For a better management \
user-defined titles and icons can be specified for each single entry. \
Furthermore the entries are sorted in groups, which are customizable as well. \
The integrated search function allows to search in a single group or the \
complete database.
KeePassXC offers a little utility for secure password generation. The password \
generator is very customizable, fast and easy to use. Especially someone who \
generates passwords frequently will appreciate this feature.
KeePassXC is a community fork of KeePassX which aims to incorporate stalled \
pull requests, features, and bug fixes that have never made it into the main \
KeePassX repository."
HOMEPAGE="https://keepassxc.org/"
COPYRIGHT="2010-2012 Felix Geyer
2011-2012 Florian Geyer
2012 Tobias Tangemann
2007 Trolltech ASA
2012 Intel Corporation
2012 Nokia Corporation and/or its subsidiary(-ies)
2000-2008 Tom Sato"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/keepassxreboot/keepassxc/releases/download/$portVersion/keepassxc-$portVersion-src.tar.bz2"
CHECKSUM_SHA256="23a39aeda8f2e6263b0821826cfb8735275fba104712748c7a5e41e1f87fb0a6"
PATCHES="keepassxc-2.1.0.patchset"
ADDITIONAL_FILES="keepassxc.rdef"
ARCHITECTURES="x86 ?x86_64"
PROVIDES="
keepassxc = $portVersion
app:keepassxc = $portVersion
"
REQUIRES="
haiku
lib:libgcrypt
lib:libmicrohttpd
lib:libQt5Concurrent
lib:libQt5Core
lib:libQt5Network
lib:libQt5Test
lib:libQt5Widgets
lib:libz
"
BUILD_REQUIRES="
haiku_devel
devel:libz
devel:libgcrypt
devel:libgpg_error
devel:libmicrohttpd
devel:libQt5Concurrent
devel:libQt5Core
devel:libQt5Network
devel:libQt5Test
devel:libQt5Widgets
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:make
cmd:g++
cmd:qmake
cmd:moc
cmd:xres
"
BUILD()
{
cmake -DCMAKE_INSTALL_PREFIX=$prefix \
-DCMAKE_INSTALL_DATAROOTDIR=$dataDir \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_TESTS=on -DWITH_XC_AUTOTYPE=on.
make $jobArgs
rc $portDir/additional-files/keepassxc.rdef \
-o $sourceDir/src/keepassxc.rsrc
xres -o $sourceDir/src/keepassxc $sourceDir/src/keepassxc.rsrc
mimeset -f $sourceDir/src/keepassxc
}
INSTALL()
{
make install
appIconsDir=$dataDir/keepassxc/icons/application
rm -rf $appIconsDir/scalable
rm -rf $appIconsDir/16x16/apps
rm -rf $appIconsDir/*/mimetypes
for i in 24 32 48 64 128 256; do
rm -rf $appIconsDir/${i}x${i}
done
mkdir -p $appsDir
mv $binDir/keepassxc $appsDir/KeePassXC
addAppDeskbarSymlink $appsDir/KeePassXC KeePassXC
}
TEST()
{
make test
}