diff options
Diffstat (limited to 'audio/id3tool/id3tool.SlackBuild')
-rw-r--r-- | audio/id3tool/id3tool.SlackBuild | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/audio/id3tool/id3tool.SlackBuild b/audio/id3tool/id3tool.SlackBuild index 34e1927ef3..ed798cc590 100644 --- a/audio/id3tool/id3tool.SlackBuild +++ b/audio/id3tool/id3tool.SlackBuild @@ -2,7 +2,8 @@ # Slackware build script for id3tool -# Copyright 2012 Markus Hutmacher markus.hutmacher@gmail.com +# Copyright 2012 Markus Hutmacher <email removed> +# Copyright 2018 B. Watson <yalhcru@gmail.com> # All rights reserved. # # Permission to use, copy, modify, and distribute this software for any purpose @@ -20,14 +21,23 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20180729 bkw: +# - Take over maintenance. +# - i486 => i586. +# - Reword README and slack-desc (less awkward now). +# - Remove --enable-sudo and --infodir from configure (they did nothing). +# - Don't install useless INSTALL doc. +# - BUILD=2. +# - Simplify script a bit. + PRGNAM=id3tool VERSION=${VERSION:-1.2a} -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 @@ -38,8 +48,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" @@ -52,8 +62,6 @@ else LIBDIRSUFFIX="" fi -DOCS="COPYING README INSTALL CHANGELOG" - set -e rm -rf $PKG @@ -63,34 +71,22 @@ rm -rf $PRGNAM-$VERSION tar xvf $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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -[ "$SUDO" = "true" ] && ENABLE_SUDO="--enable-sudo" +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --mandir=/usr/man \ - --infodir=/usr/doc/$PRGNAM-$VERSION \ - --build=$ARCH-slackware-linux \ - ${ENABLE_SUDO} + --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG - -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 - -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 +make install-strip DESTDIR=$PKG +gzip $PKG/usr/man/man1/$PRGNAM.1 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING README CHANGELOG $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |