#!/bin/sh # This is a Slackbuild designed to make a Vector Linux package, # The VL Slackbuild is brought to you by # The Headacher (theheadacher{at}gmail[dot]com) CWD=`pwd` if ["$TMP" = ""]; then TMP=/tmp fi PKG=$TMP/package-audacity NAME=audacity VERSION=1.3.3 ARCH=i586 BUILD=1vl58 CFLAGS="-O2 -march=i586 -mtune=i686" if [ ! -d $TMP ]; then mkdir -p $TMP fi if [ ! -d $PKG ]; then mkdir -p $PKG fi cd $TMP tar xvzf $CWD/$NAME-src-$VERSION.tar.gz mv $NAME-src-$VERSION-beta $NAME-$VERSION cd $NAME-$VERSION ./configure --prefix=/usr \ --with-lib-preference=system \ --with-vorbis \ --with-libmad \ --with-flac \ --with-id3tag \ --with-libsamplerate \ --with-ladspa \ --with-portaudio=v19 \ make make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/$NAME-$VERSION cp -a LICENSE.txt README.txt $PKG/usr/doc/$NAME-$VERSION mkdir -p $PKG/install cat > $PKG/install/slack-desc << EOF # 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------------------------------------------------------| audacity: audacity (audio editor and recorder) audacity: audacity: Audacity is a free, easy-to-use audio editor and recorder. audacity: You can use Audacity to: audacity: - Record live audio. audacity: - Edit Ogg Vorbis, MP3, and WAV sound files. audacity: - Cut, copy, splice, and mix sounds together. audacity: - Change the speed or pitch of a recording. audacity: - And more! audacity: Website: http://audacity.sourceforge.net/ audacity: License: GNU General Public License #---------------------------------------- BUILDDATE: `date` PACKAGER: The Headacher HOST: `uname -srm` DISTRO: `cat /etc/vector-version` CFLAGS: '$CFLAGS' CONFIGURE: `awk "/\.\/configure\ /" $TMP/$NAME-$VERSION/config.log` EOF cd $CWD cp $NAME.SlackBuild $PKG/usr/doc/$NAME-$VERSION #default .desktop file that comes with audacity is broken, make a new one cat > $PKG/usr/share/applications/audacity.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=Audacity Sound Editor Name[de]=Audacity Audio-Editor GenericName=Sound Editor GenericName[de]=Audio-Editor Comment=Record and edit audio files Comment[de]=Audio-Dateien aufnehmen und bearbeiten Icon=/usr/share/audacity/audacity.xpm Type=Application Categories=Application;AudioVideo;Audio;Multimedia; Exec=audacity StartupNotify=false Terminal=false MimeType=application/ogg;audio/basic;audio/mpeg;audio/x-aiff;audio/x-mp3;audio/x-wav;application/x-audacity-project; EOF #make sure the audacity logo shows up in the menu, devs forgot to #copy it during 'make install' cp $TMP/$NAME-$VERSION/images/AudacityLogo.xpm $PKG/usr/share/audacity/audacity.xpm cd $PKG chown -R root:root . requiredbuilder -v -y -s $CWD $PKG makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tlz if [ "$1" = "--cleanup" ]; then rm -rf $TMP/$NAME-$VERSION rm -rf $PKG fi