#!/bin/sh # Heavily based on the Slackware 11.0 SlackBuild # Required to build: libcdaudio # Required to run: gtk2-perl >= 1.040, glib-perl, flac123 # Required Encoders: lame, faac, mac and flac # Required Decoders: faad # project page: http://gnormalize.sourceforge.net # Packager baldelario ~at~ gmail ~dot~ com # http://www.slacky.it NAME1=gnormalize NAME2=audio-cd NAME3=cddb_get NAME4=mp3-info SRCNAME1=gnormalize-0.52 SRCNAME2=Audio-CD-0.04-changed SRCNAME3=CDDB_get-2.27 SRCNAME4=MP3-Info-1.20 ARCH=i486 BUILD=1bj CWD=`pwd` TMP=${TMP:-/tmp/tgz} PKG1=$TMP/package-$NAME1 PKG2=$TMP/package-$NAME2 PKG3=$TMP/package-$NAME3 PKG4=$TMP/package-$NAME4 cd $TMP rm -rf $PKG{1,2,3,4} mkdir -p $PKG{1,2,3,4} tar xzvf $CWD/$SRCNAME1.tar.gz cd $SRCNAME1 tar xzvf $SRCNAME2.tar.gz tar xzvf $SRCNAME3.tar.gz tar xzvf $SRCNAME4.tar.gz chown -R root:root * ( mkdir -p $PKG1/usr/{bin,man/man1,share/$NAME1,share/applications} \ $PKG1/usr/{share/gnormalize/animations,share/icons} cp -rf mpc/mpp* $PKG1/usr/bin strip $PKG1/usr/bin/* cat gnormalize > $PKG1/usr/bin/gnormalize chmod 755 $PKG1/usr/bin/* cat gnormalize.1.bz2 > $PKG1/usr/man/man1/gnormalize.1.bz2 cp -rf animations/*.gif $PKG1/usr/share/gnormalize/animations cp -f icons/gnormalize-32.png $PKG1/usr/share/icons/gnormalize.png mkdir -p $PKG1/usr/doc/$SRCNAME1 cp -a README $PKG1/usr/doc/$SRCNAME1 cp -a $CWD/*.desktop $PKG1/usr/share/applications chown -R root.root $PKG1/usr/share mkdir -p $PKG1/install cat << SLACKDESC > $PKG1/install/slack-desc # 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----------------------------------------------------| $NAME1: $NAME1 (An audio conversion suite capable of many tasks) $NAME1: $NAME1: gnormalize is a front end to normalize, a ripper, an encoder, $NAME1: an audio converter and an audio player. It uses gtk2-perl. $NAME1: gnormalize decodes the MP3/MP4/MPC/OGG/APE/FLAC file to WAV, then $NAME1: normalizes the WAV to a targeted volume level and re-encodes it $NAME1: gnormalize can also rip, encode, convert audio format between MP3, $NAME1: MP4, MPC, OGG, APE and FLAC, play audio files, change the encoding $NAME1: and tag properties of final normalized files. $NAME1: $NAME1: Package Created By: Baldelario SLACKDESC ) ( cd $SRCNAME2 CFLAGS="-O2 -march=i486 -mtune=i686" perl Makefile.PL PREFIX=/usr i486-slackware-linux make make test make install DESTDIR=$PKG2 mkdir -p $PKG2/usr/doc/$SRCNAME2 cp -a MANIFEST README $PKG2/usr/doc/$SRCNAME2 mv $PKG2/usr/share/man $PKG2/usr/ gzip -9 $PKG2/usr/man/*/* rm -rf $PKG2/usr/share mkdir -p $PKG2/install cat << SLACKDESC > $PKG2/install/slack-desc # 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----------------------------------------------------| $NAME2: $NAME2 (Perl module) $NAME2: $NAME2: Perl interface to libcdaudio (cd + cddb) $NAME2: $NAME2: http://cdcd.undergrid.net/ $NAME2: $NAME2: $NAME2: $NAME2: $NAME2: $NAME2: SLACKDESC ) ( cd $SRCNAME3 CFLAGS="-O2 -march=i486 -mtune=i686" perl Makefile.PL PREFIX=/usr i486-slackware-linux make make test make install DESTDIR=$PKG3 mkdir -p $PKG3/usr/doc/$SRCNAME3 cp -a Artistic Copying MANIFEST README $PKG3/usr/doc/$SRCNAME3 mv $PKG3/usr/share/man $PKG3/usr/ gzip -9 $PKG3/usr/man/*/* rm -rf $PKG3/usr/share mkdir -p $PKG3/install cat << SLACKDESC > $PKG3/install/slack-desc # 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----------------------------------------------------| $NAME3: $NAME3 (Perl module) $NAME3: $NAME3: This module/script gets the CDDB info for an audio cd. $NAME3: You need LINUX, SUNOS or *BSD, a cdrom drive and an $NAME3: active internet connection in order to do that. $NAME3: $NAME3: $NAME3: $NAME3: $NAME3: $NAME3: SLACKDESC ) ( cd $SRCNAME4 CFLAGS="-O2 -march=i486 -mtune=i686" perl Makefile.PL PREFIX=/usr i486-slackware-linux make make test make install DESTDIR=$PKG4 mkdir -p $PKG4/usr/doc/$SRCNAME4 cp -a Changes MANIFEST README TODO $PKG4/usr/doc/$SRCNAME4 mv $PKG4/usr/share/man $PKG4/usr/ gzip -9 $PKG4/usr/man/*/* rm -rf $PKG4/usr/share mkdir -p $PKG4/install cat << SLACKDESC > $PKG4/install/slack-desc # 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----------------------------------------------------| $NAME4: $NAME4 (Perl module) $NAME4: $NAME4: This is MP3::Info, for getting info out of and into MP3 files. $NAME4: $NAME4: http://www.slimdevices.com/ $NAME4: $NAME4: $NAME4: $NAME4: $NAME4: $NAME4: SLACKDESC ) cd $PKG1 requiredbuilder -v -y $PKG1 makepkg -l y -c n $CWD/gnormalize-0.52-noarch-$BUILD.tgz cd $PKG2 requiredbuilder -v -y $PKG2 makepkg -l y -c n $CWD/audio-cd-0.04-$ARCH-$BUILD.tgz cd $PKG3 requiredbuilder -v -y $PKG3 makepkg -l y -c n $CWD/cddb_get-2.27-$ARCH-$BUILD.tgz cd $PKG4 requiredbuilder -v -y $PKG4 makepkg -l y -c n $CWD/mp3-info-1.20-$ARCH-$BUILD.tgz if [ "$1" = "--cleanup" ]; then rm -rf $TMP fi