Browse Source

l/scute: Upgraded to scute-1.5.0.

slackware-14.2
Damien Goutte-Gattat 4 years ago
parent
commit
d8f31275ae
  1. 1
      l/scute/scute-1.5.0.tar.bz2.sha256
  2. 24
      l/scute/scute.SlackBuild

1
l/scute/scute-1.5.0.tar.bz2.sha256

@ -0,0 +1 @@
6199d28d8ce17f979f67059b461ab55a2276fc390eaa45e5ce6ff615bf81ab96 scute-1.5.0.tar.bz2

24
l/scute/scute.SlackBuild

@ -28,12 +28,10 @@
NAMESRC=${NAMESRC:-scute}
VERSION=${VERSION:-1.5.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-ftp://ftp.gnupg.org/gcrypt/scute/$ARCHIVE}
GITREV=${GITREV:-5ef976c}
WGET=${WGET:-https://gnupg.org/ftp/gcrypt/scute/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-scute}
VERSIONPKG=${VERSIONPKG:-${VERSION}g$GITREV}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
@ -74,17 +72,10 @@ esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
git clone git://git.gnupg.org/scute.git
cd scute
git checkout $GITREV
./autogen.sh --force
./configure --enable-maintainer-mode
make -j $JOBS
make dist
mv $ARCHIVE ..
cd ..
rm -rf scute
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
@ -98,6 +89,7 @@ CXXFLAGS=$CPUOPT \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--infodir=/usr/info \
--with-gpg-connect-agent=/usr/bin/gpg-connect-agent \
--build=$ARCH-slackware-linux
make -j $JOBS
make install-strip DESTDIR=$PKG
@ -107,8 +99,8 @@ rm $PKG/usr/info/dir
find $PKG/usr/info -type f -exec gzip -9 {} \;
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSIONPKG
install -m 644 AUTHORS COPYING ChangeLog NEWS README TODO $PKG/usr/doc/$NAMEPKG-$VERSIONPKG
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 AUTHORS COPYING ChangeLog NEWS README TODO $PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
@ -118,7 +110,7 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSIONPKG-$ARCH-$BUILD.$EXT
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"

Loading…
Cancel
Save