mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
development/astyle: Updated for version 2.06 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
9ab9d66938
commit
65f2c188d7
3 changed files with 19 additions and 15 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
# Slackware build script for Artistic Style
|
||||
|
||||
# Nate Bargmann <n0nb@arrl.net>
|
||||
|
||||
# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
|
||||
|
||||
# Maintained by Daniel Jordan, daniel.budd.j@gmail.com
|
||||
|
@ -31,7 +33,7 @@
|
|||
# not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PRGNAM=${PRGNAM:-astyle}
|
||||
VERSION=${VERSION:-2.05.1}
|
||||
VERSION=${VERSION:-2.06}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -39,7 +41,7 @@ SRCPK=astyle_$VERSION\_linux.tar.gz
|
|||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
|
@ -50,8 +52,8 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
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"
|
||||
|
@ -84,15 +86,17 @@ CFLAGS="$SLKCFLAGS" \
|
|||
CXXFLAGS="$SLKCFLAGS" \
|
||||
make release shared
|
||||
|
||||
make install prefix=$PKG/usr/
|
||||
inst_pfx=$PKG/usr
|
||||
make install prefix=$inst_pfx SYSCONF_PATH=$inst_pfx/doc/$PRGNAM-$VERSION
|
||||
|
||||
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
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mv $PKG/usr/share/doc/$PRGNAM/html/* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
## clean out directory as it is now empty
|
||||
rm -rf $PKG/usr/share/
|
||||
cd $TMP/$PRGNAM
|
||||
for file in *.txt
|
||||
do
|
||||
cat $file > $PKG/usr/doc/$PRGNAM-$VERSION/$file
|
||||
done
|
||||
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="astyle"
|
||||
VERSION="2.05.1"
|
||||
VERSION="2.06"
|
||||
HOMEPAGE="http://astyle.sourceforge.net/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/astyle/astyle_2.05.1_linux.tar.gz"
|
||||
MD5SUM="4142d178047d7040da3e0e2f1b030a1a"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/astyle/astyle_2.06_linux.tar.gz"
|
||||
MD5SUM="ff588e7fcede824591cf5b9085df109d"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Ryan P.C. McQuen"
|
||||
EMAIL="ryanpcmcquen@member.fsf.org"
|
||||
MAINTAINER="Nate Bargmann"
|
||||
EMAIL="n0nb@arrl.net"
|
||||
|
|
Loading…
Reference in a new issue