network/amsn: Updated for version 0.97.2

This commit is contained in:
Niklas Nille Åkerström 2010-05-13 00:35:34 +02:00 committed by David Somero
parent 474e5fbe21
commit 8747af343d
2 changed files with 14 additions and 7 deletions

View File

@ -19,10 +19,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
rm -rf $PKG rm -rf $PKG
@ -37,13 +40,13 @@ chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
|| exit 1 || exit 1
make || exit 1 make || exit 1
make install DESTDIR=$PKG \ make install DESTDIR=$PKG || exit 1
|| exit 1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@ -58,9 +61,11 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/doinst.sh > $PKG/install/doinst.sh
( cd $PKG ( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
) )
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -2,7 +2,9 @@ PRGNAM="amsn"
VERSION="0.97.2" VERSION="0.97.2"
HOMEPAGE="http://amsn-project.net/" HOMEPAGE="http://amsn-project.net/"
DOWNLOAD="http://downloads.sourceforge.net/amsn/amsn-0.97.2.tar.bz2" DOWNLOAD="http://downloads.sourceforge.net/amsn/amsn-0.97.2.tar.bz2"
DOWNLOAD_x86_64=""
MD5SUM="6c494d97b5ab810f1b265ef19bf652b0" MD5SUM="6c494d97b5ab810f1b265ef19bf652b0"
MAINTAINER="Niklas 'Nille' Åkerström" MD5SUM_x86_64=""
MAINTAINER="Niklas 'Nille' <20>kerstr<74>m"
EMAIL="nille.kungen [at] gmail dot com" EMAIL="nille.kungen [at] gmail dot com"
APPROVED="David Somero" APPROVED="dsomero"