Browse Source

ap/adfgvx: Upgraded to adfgvx-0.2-git4.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
3931be1993
  1. 1
      ap/adfgvx/adfgvx-0.2-git4.tar.gz.sha1
  2. 29
      ap/adfgvx/adfgvx.SlackBuild

1
ap/adfgvx/adfgvx-0.2-git4.tar.gz.sha1

@ -0,0 +1 @@
1b5a65f4eece62dfe62ed08b3989e0795b15e6b9 adfgvx-0.2-git4.tar.gz

29
ap/adfgvx/adfgvx.SlackBuild

@ -27,20 +27,21 @@
# Source package infos
NAMESRC=${NAMESRC:-adfgvx}
VERSION=${VERSION:-0.2}
VERSION=${VERSION:-0.2-git4}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://www.incenp.org/dvlpt/$ARCHIVE}
# Build infos
NAMETGZ=${NAMETGZ:-adfgvx}
NAMEPKG=${NAMEPKG:-adfgvx}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
@ -69,11 +70,11 @@ x86_64)
esac
# Get and verify the source archive
#if [ ! -r $ARCHIVE ]; then
# wget -c -O $ARCHIVE.part "$WGET"
# mv $ARCHIVE.part $ARCHIVE
#fi
#sha1sum -c $ARCHIVE.sha1
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -88,18 +89,14 @@ CXXFLAGS=$CPUOPT \
--mandir=/usr/man \
--docdir=/usr/doc/$NAME
make -j $JOBS
make install DESTDIR=$PKG
make install-strip DESTDIR=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
#find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
# xargs strip --strip-unneeded 2> /dev/null
# Compress man and info pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
for manpage in $(find $PKG/usr/man -type l); do
ln -s $(readlink $manpage).gz $manpage.gz
rm -f $manpage
done
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
@ -109,7 +106,7 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-${VERSION//-/}-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"

Loading…
Cancel
Save