Browse Source

network/corkscrew: Switch to i586, fix download.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
pull/27/head
Brenton Earl 9 years ago
committed by Willy Sudiarto Raharjo
parent
commit
6379c0fda5
No known key found for this signature in database GPG Key ID: 887B8374D7333381
  1. 24
      network/corkscrew/corkscrew.SlackBuild
  2. 2
      network/corkscrew/corkscrew.info

24
network/corkscrew/corkscrew.SlackBuild

@ -29,7 +29,7 @@ TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -40,10 +40,10 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCS="COPYING README"
DOCS="COPYING README ChangeLog"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -67,10 +67,10 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@ -82,15 +82,13 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# No man pages :-/
# I leave this section for future use (hopefully)
#( 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 {} \;
#for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION

2
network/corkscrew/corkscrew.info

@ -1,7 +1,7 @@
PRGNAM="corkscrew"
VERSION="2.0"
HOMEPAGE="http://www.agroman.net/corkscrew/"
DOWNLOAD="http://www.agroman.net/corkscrew/corkscrew-2.0.tar.gz"
DOWNLOAD="http://pkgs.fedoraproject.org/repo/pkgs/corkscrew/corkscrew-2.0.tar.gz/35df77e7f0e59c0ec4f80313be52c10a/corkscrew-2.0.tar.gz"
MD5SUM="35df77e7f0e59c0ec4f80313be52c10a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""

Loading…
Cancel
Save