# Get the source tarball
cd
test -f installed/gpgme-1.23.2.tar.bz2 && mv installed/gpgme-1.23.2.tar.bz2 .
test ! -f gpgme-1.23.2.tar.bz2 &&
wget https://gnupg.org/ftp/gcrypt/gpgme/gpgme-1.23.2.tar.bz2
# Verify tarball w/ sha256sum:
# (this came from the integrity check page and my gpg-verified tarball)
echo "9499e8b1f33cccb6815527a1bc16049d35a6198a6c5fae0185f2bd561bce52\
24 gpgme-1.23.2.tar.bz2" | sha256sum -c
# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "gpgme-*" -exec rm -r {} \;
tar xjvf ~/gpgme-1.23.2.tar.bz2
cd gpgme-1.23.2
test $UID = 0 && chown -R root:root .
# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
./configure --prefix=/usr --infodir=/usr/info --libdir=/usr/lib64
# Configure the build for anything else
test $(uname -m) != 'x86_64' &&
./configure --prefix=/usr --infodir=/usr/info
# Build it
make
# Become root to install it
su
# Install it
make install
ldconfig
# Become yourself again
exit
# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/gpgme-*.tar.*
mv gpgme-1.23.2.tar.bz2 installed/
# If you ever need to uninstall gpgme, this should do it:
test -d ~/src/gpgme-* && ( cd ~/src/gpgme-* ; make uninstall )
su
rm -f /usr/local/bin/gpgme-config /usr/local/include/gpgme.h \
/usr/local/share/aclocal/gpgme.m4 /usr/local/info/gpgme.info
( cd /usr/local/lib ; rm -f libgpgme.* libgpgme-pthread.* )
exit
find ~/src -maxdepth 1 -type d -name "gpgme-*" -exec rm -r {} \;
rm -f ~/installed/gpgme-*.tar.*