mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
audio/apulse: Updated for version 20150103.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
This commit is contained in:
parent
78edbebc86
commit
711fbd0ed5
3 changed files with 31 additions and 29 deletions
|
@ -14,25 +14,17 @@ to bypass this, run:
|
||||||
|
|
||||||
# COMPAT32=no sh apulse.SlackBuild
|
# COMPAT32=no sh apulse.SlackBuild
|
||||||
|
|
||||||
The multilib version will create two binaries,
|
|
||||||
apulse (64-bit) and apulse32 (32-bit), unless
|
|
||||||
you choose to install the libraries globally.
|
|
||||||
|
|
||||||
The default is for libraries to be installed in:
|
The default is for libraries to be installed in:
|
||||||
|
|
||||||
/usr/lib${LIBDIRSUFFIX}/apulse
|
/usr/lib${LIBDIRSUFFIX}/apulse
|
||||||
|
|
||||||
To override this setting and install the libraries
|
To override this setting and install the libraries
|
||||||
directly into the /usr/lib*/ directories, run:
|
directly into the /usr/lib${LIBDIRSUFFIX}/ directories, run:
|
||||||
|
|
||||||
GLOBAL_LIBS=yes sh apulse.SlackBuild
|
GLOBAL_LIBS=yes sh apulse.SlackBuild
|
||||||
|
|
||||||
The advantage of this, is the ability for pulseaudio
|
This may increase pulseaudio compatibility with
|
||||||
emulation in several applications beyond those
|
some applications. The disadvantage of this
|
||||||
originally intended by the apulse project, such
|
|
||||||
as games from gog.com. The disadvantage of this
|
|
||||||
'global' build type, is that some programs (such as
|
'global' build type, is that some programs (such as
|
||||||
Google Chrome) will believe you have pulseaudio
|
Google Chrome) will believe you have pulseaudio
|
||||||
installed and may not have sound.
|
installed and may not have sound.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -23,10 +23,13 @@
|
||||||
# <http://www.gnu.org/licenses/>.
|
# <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
PRGNAM=apulse
|
PRGNAM=apulse
|
||||||
VERSION=${VERSION:-0.1.5}
|
VERSION=${VERSION:-20150103}
|
||||||
BUILD=${BUILD:-3}
|
SRCVERSION=${SRCVERSION:-aa73e4ecf972537649438e2076e10a40cc965bda}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
DOCS="LICENSE.MIT README.md"
|
||||||
|
|
||||||
## build with GLOBAL_LIBS=yes
|
## build with GLOBAL_LIBS=yes
|
||||||
## to install pulse libraries
|
## to install pulse libraries
|
||||||
## directly in lib* directories
|
## directly in lib* directories
|
||||||
|
@ -76,13 +79,13 @@ set -e
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$SRCVERSION
|
||||||
if [ -e $CWD/v$VERSION.tar.gz ]; then
|
if [ -e $CWD/$SRCVERSION.tar.gz ]; then
|
||||||
tar xvf $CWD/v$VERSION.tar.gz
|
tar xvf $CWD/$SRCVERSION.tar.gz
|
||||||
else
|
else
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.gz
|
||||||
fi
|
fi
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$SRCVERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
|
@ -94,26 +97,33 @@ if [ "$COMPAT32" = "yes" ]; then
|
||||||
mkdir -pv build-m32
|
mkdir -pv build-m32
|
||||||
cd build-m32
|
cd build-m32
|
||||||
CFLAGS=-m32 \
|
CFLAGS=-m32 \
|
||||||
cmake -DAPULSEPATH=/usr/lib${APULSELIBPATHSUFFIX} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
|
cmake \
|
||||||
|
-DAPULSEPATH=/usr/lib${APULSELIBPATHSUFFIX} \
|
||||||
|
-DAPULSE_SEARCH_PATHS=/usr/lib${APULSELIBPATHSUFFIX}:/usr/lib${LIBDIRSUFFIX}${APULSELIBPATHSUFFIX} \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
..
|
||||||
make VERBOSE=1
|
make VERBOSE=1
|
||||||
make install DESTDIR=$PKG
|
make install DESTDIR=$PKG
|
||||||
if [ "$GLOBAL_LIBS" = no ]; then
|
|
||||||
mv $PKG/usr/bin/${PRGNAM} $PKG/usr/bin/${PRGNAM}32
|
|
||||||
fi
|
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
fi
|
||||||
mkdir -pv build
|
mkdir -pv build
|
||||||
cd build
|
cd build
|
||||||
cmake -DAPULSEPATH=/usr/lib${LIBDIRSUFFIX}${APULSELIBPATHSUFFIX} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
|
cmake \
|
||||||
make VERBOSE=1
|
-DAPULSEPATH=/usr/lib${LIBDIRSUFFIX}${APULSELIBPATHSUFFIX} \
|
||||||
make install DESTDIR=$PKG
|
-DAPULSE_SEARCH_PATHS=/usr/lib${APULSELIBPATHSUFFIX}:/usr/lib${LIBDIRSUFFIX}${APULSELIBPATHSUFFIX} \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
..
|
||||||
|
make VERBOSE=1
|
||||||
|
make install DESTDIR=$PKG
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
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
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/
|
||||||
cp -a LICENSE.MIT README.md $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="apulse"
|
PRGNAM="apulse"
|
||||||
VERSION="0.1.5"
|
VERSION="20150103"
|
||||||
HOMEPAGE="https://github.com/i-rinat/apulse"
|
HOMEPAGE="https://github.com/i-rinat/apulse"
|
||||||
DOWNLOAD="https://github.com/i-rinat/apulse/archive/v0.1.5.tar.gz"
|
DOWNLOAD="https://github.com/i-rinat/apulse/archive/aa73e4ecf972537649438e2076e10a40cc965bda.tar.gz"
|
||||||
MD5SUM="48cd971011f2c9d864cf3dad24803c32"
|
MD5SUM="a6ac21cc73272a9374c6bda728195b14"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
|
|
Loading…
Reference in a new issue