Browse Source

xap/sherpa: Removed.

slackware-15.0
parent
commit
db191e08b2
  1. 5
      xap/sherpa/doinst.sh
  2. 1
      xap/sherpa/sherpa-0.4.0.tar.gz.sha256
  3. 107
      xap/sherpa/sherpa.SlackBuild
  4. 9
      xap/sherpa/sherpa.desktop
  5. 12
      xap/sherpa/slack-desc

5
xap/sherpa/doinst.sh

@ -1,5 +0,0 @@
#!/bin/sh
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1
fi

1
xap/sherpa/sherpa-0.4.0.tar.gz.sha256

@ -1 +0,0 @@
2a3ad8fa6a1d636a9fd2a515612a0c92cbbb2a7a37e690c9fc22fd2f704609ae sherpa-0.4.0.tar.gz

107
xap/sherpa/sherpa.SlackBuild

@ -1,107 +0,0 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2020 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest sherpa sourcecode is available at:
# <https://github.com/rjhansen/sherpa>.
#
# Depends: l/minizip, l/qt5
# Source package infos
NAMESRC=${NAMESRC:-sherpa}
VERSION=${VERSION:-0.4.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/rjhansen/sherpa/archive/$VERSION.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-sherpa}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exists or is not a directory!"
exit 1
fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
qmake-qt5 sherpa.pro
make -j $JOBS
make install DESTDIR=$PKG
# Install
install -D -m 755 -s sherpa $PKG/usr/bin/sherpa
install -D -m 644 LICENSE $PKG/usr/doc/$NAME/LICENSE
install -m 644 README.md $PKG/usr/doc/$NAME/README.md
install -D -m 644 $CWD/sherpa.desktop $PKG/usr/share/applications/sherpa.desktop
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
minizip
qt5
EOF
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

9
xap/sherpa/sherpa.desktop

@ -1,9 +0,0 @@
[Desktop Entry]
Version=1.0
Name=Sherpa
GenericName=Sherpa
Comment=GnuPG Migration Tool
Type=Application
Categories=Qt;Application;Security;Utility;
Exec=/usr/bin/sherpa
Terminal=false

12
xap/sherpa/slack-desc

@ -1,12 +0,0 @@
|-----handy-ruler-----------------------------------------------------|
sherpa: sherpa (GnuPG migration tool)
sherpa:
sherpa: Sherpa is a Qt-based tool to facilitate migrating a GnuPG profile
sherpa: from one machine to another or from one GnuPG version to another,
sherpa: or to backup a profile or restore a profile from a backup.
sherpa:
sherpa:
sherpa:
sherpa:
sherpa:
sherpa:
Loading…
Cancel
Save