diff options
author | Eric Hameleers <alien@slackware.com> | 2007-06-30 14:25:13 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2007-06-30 14:25:13 +0000 |
commit | 94f9af4af268f20453c66bb0119247fd37343393 (patch) | |
tree | 6e76851a6b6ce933267ece973aed7880713ff685 /lame | |
parent | a9c52019f232395cab0c1f99ca1a2b7b79bf4aab (diff) | |
download | asb-94f9af4af268f20453c66bb0119247fd37343393.tar.gz asb-94f9af4af268f20453c66bb0119247fd37343393.tar.xz |
Initial revision
Diffstat (limited to 'lame')
-rwxr-xr-x | lame/build/lame.SlackBuild | 61 | ||||
-rw-r--r-- | lame/build/slack-desc | 19 |
2 files changed, 80 insertions, 0 deletions
diff --git a/lame/build/lame.SlackBuild b/lame/build/lame.SlackBuild new file mode 100755 index 00000000..dbcc7d06 --- /dev/null +++ b/lame/build/lame.SlackBuild @@ -0,0 +1,61 @@ +#!/bin/sh + +CWD=`pwd` + +if [ "$TMP" = "" ]; then + TMP=/tmp +fi +PKG=$TMP/package-lame + +VERSION=3.96.1 +ARCH=i486 +BUILD=1 + +if [ ! -d $TMP/tmp-lame ]; then + mkdir -p $TMP/tmp-lame # location to build the source +fi +rm -rf $PKG +mkdir -p $PKG + +cd $TMP/tmp-lame +tar xzvf $CWD/lame-$VERSION.tar.gz +cd lame-$VERSION +# +CFLAGS="-O2 -march=i486 -mtune=i686" \ +./configure --prefix=/usr \ + --disable-static \ + i486-slackware-linux +make +make install DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/lame-$VERSION +cp -a API COPYING ChangeLog DEFINES HACKING INSTALL NEWS README \ + README.WINGTK STYLEGUIDE TODO USAGE \ + $PKG/usr/doc/lame-$VERSION +mv $PKG/usr/share/doc/lame/html $PKG/usr/doc/lame-$VERSION/ +rm -r $PKG/usr/share +chmod -R a-w $PKG/usr/doc/lame-$VERSION/* +chown root:root $PKG/usr/doc/lame-$VERSION/* + +find $PKG -type f | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded +find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +# Make the package: +cd $PKG +makepkg --linkadd y --chown n $TMP/lame-$VERSION-$ARCH-$BUILD.tgz \ + 2>&1 | tee $CWD/makepkg.log +(cd $TMP && md5sum lame-$VERSION-$ARCH-$BUILD.tgz > \ + lame-$VERSION-$ARCH-$BUILD.tgz.md5 +) +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > \ + $TMP/lame-$VERSION-$ARCH-$BUILD.txt + + +# Clean up the extra stuff: +if [ "$1" = "--cleanup" ]; then + rm -rf $TMP/tmp-lame + rm -rf $PKG +fi diff --git a/lame/build/slack-desc b/lame/build/slack-desc new file mode 100644 index 00000000..0bb99268 --- /dev/null +++ b/lame/build/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------------------------------------------------------| +lame: lame - LAME Ain't an Mp3 Encoder +lame: +lame: An MP3 encoder :-) +lame: +lame: +lame: +lame: +lame: +lame: +lame: +lame: |