diff options
author | Roberto Neri <rneri@libero.it> | 2010-05-11 22:53:13 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:53:13 +0200 |
commit | 6ef9602a03cb1818d8a6a402f0b8ee51a97fa77e (patch) | |
tree | 8a2b7f9c6128bf82f9462632fecc630863b24bdd /audio/mp3splt | |
parent | 6588e28ca1c068f4e3722cdb66e779de38db158c (diff) | |
download | slackbuilds-6ef9602a03cb1818d8a6a402f0b8ee51a97fa77e.tar.gz |
audio/mp3splt: Added to 12.1 repository
Diffstat (limited to 'audio/mp3splt')
-rw-r--r-- | audio/mp3splt/README | 14 | ||||
-rw-r--r-- | audio/mp3splt/mp3splt.SlackBuild | 69 | ||||
-rw-r--r-- | audio/mp3splt/mp3splt.info | 8 | ||||
-rw-r--r-- | audio/mp3splt/slack-desc | 19 |
4 files changed, 110 insertions, 0 deletions
diff --git a/audio/mp3splt/README b/audio/mp3splt/README new file mode 100644 index 0000000000..c346bfe81b --- /dev/null +++ b/audio/mp3splt/README @@ -0,0 +1,14 @@ +Mp3Splt-project is a utility to split mp3 and ogg files selecting a begin and an +end time position, without decoding. It's very useful to split large mp3/ogg to +make smaller files or to split entire albums to obtain original tracks. If you +want to split an album, you can select split points and filenames manually or +you can get them automatically from CDDB (internet or a local file) or from .cue +files. Supports also automatic silence split, that can be used also to adjust +cddb/cue splitpoints. You can extract tracks from Mp3Wrap or AlbumWrap files in +few seconds. + +Mp3splt-project is divided in 3 parts: + - libmp3splt, a library (created from mp3splt version 2.1c) + - mp3splt, a command line program + - mp3splt-gtk, a gtk2 gui +all available from SlackBuilds.org diff --git a/audio/mp3splt/mp3splt.SlackBuild b/audio/mp3splt/mp3splt.SlackBuild new file mode 100644 index 0000000000..6cefee3cf6 --- /dev/null +++ b/audio/mp3splt/mp3splt.SlackBuild @@ -0,0 +1,69 @@ +#!/bin/sh + +# Slackware build script for mp3splt + +# Written by Roberto Neri <rneri@libero.it> + +PRGNAM=mp3splt +VERSION=${VERSION:-2.2.1} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -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 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --mandir=/usr/man + +make +make install DESTDIR=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +( 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 +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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.tgz diff --git a/audio/mp3splt/mp3splt.info b/audio/mp3splt/mp3splt.info new file mode 100644 index 0000000000..603913ee27 --- /dev/null +++ b/audio/mp3splt/mp3splt.info @@ -0,0 +1,8 @@ +PRGNAM="mp3splt" +VERSION="2.2.1" +HOMEPAGE="http://mp3splt.sourceforge.net" +DOWNLOAD="http://downloads.sourceforge.net/mp3splt/mp3splt-2.2.1.tar.gz" +MD5SUM="8f487a5353b608f8c11de0a42253641e" +MAINTAINER="Roberto Neri" +EMAIL="rneri@libero.it" +APPROVED="David Somero" diff --git a/audio/mp3splt/slack-desc b/audio/mp3splt/slack-desc new file mode 100644 index 0000000000..6f74a39eab --- /dev/null +++ b/audio/mp3splt/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +mp3splt: mp3splt (command line program from the mp3splt project) +mp3splt: +mp3splt: mp3splt is a free utility to split mp3/ogg files (without decoding), +mp3splt: selecting begin/end time; if file is an album, you can get splitpoints +mp3splt: automatically from internet or a local cue/cddb file. +mp3splt: It splits also Mp3Wrap and AlbumWrap archives. +mp3splt: The mp3splt project is divided in 3 parts: +mp3splt: - libmp3splt, a library (created from mp3splt version 2.1c) +mp3splt: - mp3splt, a command line program +mp3splt: - mp3splt-gtk, a GTK2 gui +mp3splt: Homepage: http://mp3splt.sourceforge.net/ |