summaryrefslogtreecommitdiffstats
path: root/audio/rubyripper/rubyripper.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/rubyripper/rubyripper.SlackBuild')
-rw-r--r--audio/rubyripper/rubyripper.SlackBuild49
1 files changed, 27 insertions, 22 deletions
diff --git a/audio/rubyripper/rubyripper.SlackBuild b/audio/rubyripper/rubyripper.SlackBuild
index 65029db7d0..68256a9ff4 100644
--- a/audio/rubyripper/rubyripper.SlackBuild
+++ b/audio/rubyripper/rubyripper.SlackBuild
@@ -1,32 +1,42 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for rubyripper
# Written 2009, by Grigorios Bouzakis (grbzks [at] gmail [dot] com)
# Updated 2010, by Vincent Batts (vbatts [at] hashbangbash [dot] com)
# Updated 2015, by Dugan Chen (thedoogster [at] gmail [dot] com)
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=rubyripper
-VERSION=${VERSION:-0.6.2}
+VERSION=${VERSION:-0.8.0rc3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-GTK2=${GTK2:-false}
+GTK3=${GTK3:-false}
-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"
@@ -39,11 +49,11 @@ else
LIBDIRSUFFIX=""
fi
-if [ "${GTK2}" = "true" ] ; then
- GTK_ARGS="--enable-gtk2"
+if [ "${GTK3}" = "true" ] ; then
+ GTK_ARGS="--enable-gtk3"
fi
-DOCS="GPL-3.txt README"
+DOCS="CHANGELOG GPL-3.txt README.md"
set -e
@@ -51,18 +61,14 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+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 {} \;
-
-# we should patch this regardless, because if 'gtk2' is present
-# it will fail the build
-patch --verbose < ${CWD}/configure.patch
+ \( -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 {} \;
./configure \
--prefix=/usr \
@@ -73,7 +79,7 @@ patch --verbose < ${CWD}/configure.patch
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
@@ -84,5 +90,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-${BUILD}${TAG}.${PKGTYPE:-tgz}
-
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE