system/graveman: Miscellaneous fixes and enhancements.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Keith Richie 2010-06-13 02:17:58 -05:00 committed by Robby Workman
parent 51963c9cc9
commit 5ae060f090
4 changed files with 41 additions and 35 deletions

View file

@ -0,0 +1,8 @@
--- graveman-0.3.12-5/desktop/graveman.desktop.in 2005-05-23 23:07:08.000000000 +0200
+++ graveman-0.3.12_p5-r1/desktop/graveman.desktop.in 2006-12-25 14:11:39.000000000 +0100
@@ -49,4 +49,4 @@
Terminal=false
Type=Application
Icon=graveman48.png
-Categories=Application;Utility;
+Categories=AudioVideo;

View file

@ -22,25 +22,18 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Note: the developer's source code version is numbered
# with a dash at the end, e.g. 0.3.12-5, which can throw
# off the package building process. This SlackBuild fixes
# the problem by using a SRCVER variable for the source
# version and a VERSION variable for the local version.
# Essentially, this changes the dash to a period.
# Be sure to change both variables accordingly when used
# with a new version of Graveman. Thanks to Eric Hameleers
# for the fix.
# Slackbuild mainter switched to Keith Richie disturbed1976@gmail.com
# Added patch to support for audio CDs with newer Sox versions.
# Slackbuild maintainer switched to Keith Richie disturbed1976@gmail.com
# Added patch to support newer Sox versions.
PRGNAM=graveman
VERSION=0.3.12.5 # this is local version
SRCVER=0.3.12-5 # this is the developer's source version
BUILD=${BUILD:-5}
VERSION=0.3.12.5
BUILD=${BUILD:-6}
TAG=${TAG:-_SBo}
SRCVER=0.3.12-5 # this is the developer's source version
DOCS="AUTHORS COPYING ChangeLog NEWS README* THANKS TRANSLATE-HOWTO.fr"
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@ -70,12 +63,14 @@ else
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
cd $TMP
rm -rf $PRGNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz || exit 1
cd $PRGNAM-$SRCVER || exit 1
tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
cd $PRGNAM-$SRCVER
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@ -83,8 +78,13 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Patch needed to work with version of Sox in Slackware 13.0+
patch -Np0 -i $CWD/sox.patch --verbose || exit 1
# Allow Graveman to find and use newer versions of sox
# http://savannah.nongnu.org/bugs/?18409
patch -Np0 -i $CWD/sox.patch --verbose
# Place Graveman in Audio/Vido menu catagory
# https://bugs.gentoo.org/show_bug.cgi?id=159756
patch -Np1 -i $CWD/fix-menu.patch --verbose
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@ -93,23 +93,21 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
|| exit 1
--build=$ARCH-slackware-linux
make || exit 1
make install DESTDIR=$PKG || exit 1
make
make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog NEWS README* THANKS TRANSLATE-HOWTO.fr \
$PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc -type f -exec chmod 0644 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Keith Richie"
EMAIL="disturbed1976@gmail.com"
APPROVED="michiel"
APPROVED="rworkman"