mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
perl/perl-audio-sndfile: Added (perl bindings for libsndfile).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
3caf128a52
commit
f82b3ffb74
4 changed files with 117 additions and 0 deletions
8
perl/perl-audio-sndfile/README
Normal file
8
perl/perl-audio-sndfile/README
Normal file
|
@ -0,0 +1,8 @@
|
|||
perl-audio-sndfile (perl bindings for libsndfile)
|
||||
|
||||
Audio::SndFile is a perl interface to the sndfile (soundfile) library. It
|
||||
provides a portable API for reading and writing sound files in different
|
||||
formats.
|
||||
|
||||
See the documentation for a full list of supported file formats. Wav,
|
||||
flac, and ogg are supported, but mp3 is not.
|
80
perl/perl-audio-sndfile/perl-audio-sndfile.SlackBuild
Normal file
80
perl/perl-audio-sndfile/perl-audio-sndfile.SlackBuild
Normal file
|
@ -0,0 +1,80 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for perl-audio-sndfile
|
||||
|
||||
# Written by B. Watson (yalhcru@gmail.com)
|
||||
|
||||
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
||||
|
||||
PRGNAM=perl-audio-sndfile
|
||||
VERSION=${VERSION:-0.09}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
SRCNAM=Audio-SndFile
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $SRCNAM-$VERSION
|
||||
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||
cd $SRCNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
|
||||
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
|
||||
|
||||
perl Makefile.PL \
|
||||
PREFIX=/usr \
|
||||
INSTALLDIRS=vendor \
|
||||
INSTALLVENDORMAN3DIR=/usr/man/man3
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
gzip $PKG/usr/man/man3/*.3
|
||||
|
||||
find $PKG -name perllocal.pod \
|
||||
-o -name ".packlist" \
|
||||
-o -name "*.bs" \
|
||||
| xargs rm -f
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a README $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.${PKGTYPE:-tgz}
|
10
perl/perl-audio-sndfile/perl-audio-sndfile.info
Normal file
10
perl/perl-audio-sndfile/perl-audio-sndfile.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="perl-audio-sndfile"
|
||||
VERSION="0.09"
|
||||
HOMEPAGE="https://metacpan.org/pod/Audio::SndFile"
|
||||
DOWNLOAD="https://cpan.metacpan.org/authors/id/J/JD/JDIEPEN/Audio-SndFile-0.09.tar.gz"
|
||||
MD5SUM="30b972f0f428e9d9983121b3e192d4bb"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="B. Watson"
|
||||
EMAIL="yalhcru@gmail.com"
|
19
perl/perl-audio-sndfile/slack-desc
Normal file
19
perl/perl-audio-sndfile/slack-desc
Normal file
|
@ -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 ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
perl-audio-sndfile: perl-audio-sndfile (perl bindings for libsndfile)
|
||||
perl-audio-sndfile:
|
||||
perl-audio-sndfile: Audio::SndFile is a perl interface to the sndfile (soundfile)
|
||||
perl-audio-sndfile: library. It provides a portable API for reading and writing sound
|
||||
perl-audio-sndfile: files in different formats.
|
||||
perl-audio-sndfile:
|
||||
perl-audio-sndfile: See the documentation for a full list of supported file formats. Wav,
|
||||
perl-audio-sndfile: flac, and ogg are supported, but mp3 is not.
|
||||
perl-audio-sndfile:
|
||||
perl-audio-sndfile:
|
||||
perl-audio-sndfile:
|
Loading…
Reference in a new issue