mirror of
https://github.com/KeithDHedger/LFSPkgBuilds.git
synced 2025-07-23 00:24:34 +00:00
added libsamplerate
This commit is contained in:
1
LFSPkgBuildScripts/mm/libsamplerate/info
Normal file
1
LFSPkgBuildScripts/mm/libsamplerate/info
Normal file
@ -0,0 +1 @@
|
||||
http://www.linuxfromscratch.org/blfs/view/stable/multimedia/libsamplerate.html libsamplerate is a sample rate converter for audio.
|
52
LFSPkgBuildScripts/mm/libsamplerate/libsamplerate.LFSBuild
Executable file
52
LFSPkgBuildScripts/mm/libsamplerate/libsamplerate.LFSBuild
Executable file
@ -0,0 +1,52 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
. /usr/share/LFSPkg/LFSFunctions
|
||||
|
||||
PKGNAME="libsamplerate"
|
||||
TARNAME="$PKGNAME"
|
||||
VERSION="0.1.9"
|
||||
BUILD=1
|
||||
SECTION="MM"
|
||||
SUFFIX="LFSPKG"
|
||||
TARBALL="${TARNAME}-${VERSION}.tar.gz"
|
||||
|
||||
scriptLog "${PKGNAME}-${VERSION}"
|
||||
gettar "http://www.mega-nerd.com/SRC/${TARBALL}" $SECTION
|
||||
|
||||
PKG="${OUTPUT}/${PKGNAME}"
|
||||
|
||||
DOWHAT=${1:-"build"}
|
||||
rm -rf "$PKG" || true
|
||||
mkdir -p "$PKG"
|
||||
tar -xvf "${SOURCEARCHIVES}/${SECTION}/${TARBALL}"
|
||||
|
||||
pushd "${TARNAME}-${VERSION}"
|
||||
CFLAGS="$LFSFLAGS" CXXFLAGS="$LFSFLAGS" ./configure ${CONFIGOPTIONS}
|
||||
make $MAKEFLAGS||make|| exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
popd
|
||||
|
||||
checketc "$PKG"
|
||||
packageclean "$PKG"
|
||||
|
||||
cp ./preinstall ./postinstall ./info "$PKG" &>/dev/null || true
|
||||
pushd "$PKG"
|
||||
/usr/bin/lfspkg -n "$PKGNAME" -p "$VERSION" -d $SECTION -b $BUILD -s $SUFFIX -m
|
||||
popd
|
||||
|
||||
case $DOWHAT in
|
||||
up*)
|
||||
lfspkg "^${PKGNAME}-[0-9][0-9]*" "${OUTPUT}/${SECTION}/${PKGNAME}-${VERSION}-${BUILD}_${SECTION}_${SUFFIX}.tar.gz" -u
|
||||
;;
|
||||
"install")
|
||||
lfspkg "${OUTPUT}/${SECTION}/${PKGNAME}-${VERSION}-${BUILD}_${SECTION}_${SUFFIX}.tar.gz" -i
|
||||
;;
|
||||
"build")
|
||||
echo "Just built"
|
||||
;;
|
||||
*)
|
||||
echo "*** Unknown command ***"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
rm -r "$PKG" "${TARNAME}-${VERSION}"
|
@ -8,7 +8,7 @@ BLUE='\e[1;34m'
|
||||
NORMAL='\e[0;0m'
|
||||
|
||||
FORWHAT="$1"
|
||||
DATAFILE=/tmp/data$$
|
||||
DATAFILE=/tmp/datafile
|
||||
LOGCHANGES=/tmp/changes
|
||||
:>$LOGCHANGES
|
||||
|
||||
|
Reference in New Issue
Block a user