diff options
author | Kyle Guinn <elyk03@gmail.com> | 2021-05-31 22:58:42 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-06-01 21:47:01 +0700 |
commit | b158b0cdc663e4b7067fa5231b85e054ba7b8e42 (patch) | |
tree | dc0b23a110b55e316de877ac7ba18f0d2064312d /development | |
parent | 9073350c61c0e584e837dbd89ae55fc5c54817a4 (diff) |
development/udis86: Remove .la files, misc cleanup
Signed-off-by: Kyle Guinn <elyk03@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/udis86/udis86.SlackBuild | 45 | ||||
-rw-r--r-- | development/udis86/udis86.info | 2 |
2 files changed, 25 insertions, 22 deletions
diff --git a/development/udis86/udis86.SlackBuild b/development/udis86/udis86.SlackBuild index 57fd0792cf623..dd55f5d8c4223 100644 --- a/development/udis86/udis86.SlackBuild +++ b/development/udis86/udis86.SlackBuild @@ -2,34 +2,34 @@ # Slackware build script for udis86 -# Copyright 2013 Kyle Guinn <elyk03@gmail.com>, USA +# Copyright 2013-2021 Kyle Guinn <elyk03@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # # 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. +# notice, this list of conditions and the following disclaimer. # -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=udis86 VERSION=${VERSION:-1.7.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} 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 @@ -45,6 +45,9 @@ DOCS="INSTALL README" if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" +elif [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" @@ -65,11 +68,7 @@ rm -rf $PRGNAM-$VERSION tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz 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 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +chmod -R u+w,go-w,a+rX-st . # Respect --docdir. sed -i '/^docdir = /s/\${datadir}\/docs\/udis86/@docdir@/' \ @@ -77,7 +76,6 @@ sed -i '/^docdir = /s/\${datadir}\/docs\/udis86/@docdir@/' \ docs/x86/Makefile.am autoreconf -vif -CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -88,11 +86,16 @@ CFLAGS="$SLKCFLAGS" \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --enable-shared \ --disable-static \ - --build=$ARCH-slackware-linux + --disable-dependency-tracking \ + --build=$ARCH-slackware-linux \ + CFLAGS="$SLKCFLAGS" \ make +make check make install-strip DESTDIR=$PKG +find $PKG/usr/lib${LIBDIRSUFFIX} -name '*.la' -delete + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/development/udis86/udis86.info b/development/udis86/udis86.info index 55561be5e60df..614c8174f3ba0 100644 --- a/development/udis86/udis86.info +++ b/development/udis86/udis86.info @@ -1,7 +1,7 @@ PRGNAM="udis86" VERSION="1.7.2" HOMEPAGE="http://udis86.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/udis86/udis86-1.7.2.tar.gz" +DOWNLOAD="https://sourceforge.net/projects/udis86/files/udis86/1.7/udis86-1.7.2.tar.gz" MD5SUM="b7def25257afb612e8da052ee6759dac" DOWNLOAD_x86_64="" MD5SUM_x86_64="" |