# I typically use this on a PC running Ubuntu, not Slackware, so there
# are little Ubuntu/Debian-related notes below too
# If you are using Debian or Ubuntu with Qt 4.x, install the required
# prequisites before you begin.
sudo apt-get install build-essential cmake libqt4-dev libgcrypt-dev \
zlib1g-dev libxi-dev libxtst-dev
# If you are using Debian or Ubuntu with Qt 5.x, install the required
# prequisites before you begin.
sudo apt-get install build-essential cmake qtbase5-dev libqt5x11extras5-dev \
qttools5-dev qttools5-dev-tools libqt5x11extras5-dev libgcrypt20-dev \
zlib1g-dev libxi-dev and libxtst-dev
# Get it
cd
test -f installed/keepassx-2.0.2.tar.gz &&
mv -f installed/keepassx-2.0.2.tar.gz .
test ! -f keepassx-2.0.2.tar.gz &&
wget https://www.keepassx.org/releases/2.0.2/keepassx-2.0.2.tar.gz
# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "65d098dff663768911847a1e92d0f01d keepassx-2.0.2.tar.gz" | md5sum -c
# Verify tarball w/ sha1sum:
# (this also came from my gpg-verified tarball)
echo "9591e89484e3c62f7de040915ebf0ddd33fa85d7 keepassx-2.0.2.tar.gz" \
| sha1sum -c
# If the key is not found on your configured gpg keyservers, you can
# find a link to the key on the downloads page and import it from that file:
# wget https://www.keepassx.org/gpg/0x83135D45.asc -O - | gpg --import -
# Extract the source
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "keepassx-*" -exec rm -r {} \;
tar xzvf ~/keepassx-2.0.2.tar.gz
cd keepassx-2.0.2
test $UID = 0 && chown -R root:root .
# Read through ./README.md, ./INSTALL and docs on the web site
# Build it
mkdir build
cd build
cmake ..
make
# Test the build
make test
# If Ubuntu, remove your existing keepassx package
dpkg -s keepassx 2>&1 && sudo apt-get purge keepassx
# Install it
# Ubuntu: sudo make install
su -c "make install"
# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/keepassx-*.tar.* installed/KeePassX-*.tar.*
mv keepassx-2.0.2.tar.gz installed/