diff options
author | Nate Bargmann <n0nb@arrl.net> | 2017-03-10 20:40:50 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-03-10 20:41:09 +0000 |
commit | 65f2c188d7d347a26e6495b2f1f6c6b6b2d215d1 (patch) | |
tree | 41aa927b0915475bdd3e376011952db9add0dc2d /development/astyle/astyle.SlackBuild | |
parent | 9ab9d6693889155996e81053de2aba70d94c7a53 (diff) | |
download | slackbuilds-65f2c188d7d347a26e6495b2f1f6c6b6b2d215d1.tar.gz |
development/astyle: Updated for version 2.06 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/astyle/astyle.SlackBuild')
-rw-r--r-- | development/astyle/astyle.SlackBuild | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/development/astyle/astyle.SlackBuild b/development/astyle/astyle.SlackBuild index d80d106355..2411307b75 100644 --- a/development/astyle/astyle.SlackBuild +++ b/development/astyle/astyle.SlackBuild @@ -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 |