mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
system/hercules: Miscellaneous cleanups and dl link fix.
This commit is contained in:
parent
7c31813faa
commit
696013dee3
2 changed files with 18 additions and 8 deletions
|
@ -6,14 +6,21 @@
|
|||
# Written by Niels Horn - niels.horn@gmail.com
|
||||
# revision date 2010/03/10
|
||||
|
||||
set -e
|
||||
|
||||
PRGNAM=hercules
|
||||
VERSION=${VERSION:-3.07}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) export ARCH=i486 ;;
|
||||
arm*) export ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) export ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
|
@ -35,8 +42,14 @@ elif [ "$ARCH" = "arm" ]; then
|
|||
SLKCFLAGS="-O2 -march=armv4t"
|
||||
LIBDIRSUFFIX=""
|
||||
ARCHQUADLET="-gnueabi"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
ARCHQUADLET=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $TMP/$PRGNAM-$VERSION $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
|
@ -62,10 +75,7 @@ make install DESTDIR=$PKG
|
|||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
( cd $PKG/usr/man
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
|
||||
# Copy standard configuration file to /etc
|
||||
mkdir -p $PKG/etc
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
PRGNAM="hercules"
|
||||
VERSION="3.07"
|
||||
HOMEPAGE="http://www.hercules-390.org/"
|
||||
DOWNLOAD="http://www.hercules-390.org/hercules-3.07.tar.gz"
|
||||
DOWNLOAD="http://www.ibiblio.org/jmaynard/herc307/hercules-3.07.tar.gz"
|
||||
MD5SUM="a12aa1645b0695b25b7fc0c9a3ccab3a"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
|
|
Loading…
Reference in a new issue