summaryrefslogtreecommitdiff
path: root/audio/apulse/apulse.SlackBuild
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryan.q@linux.com>2015-02-26 09:02:21 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-28 11:37:07 +0700
commit711fbd0ed5d59eb89d09fa1b5db2012b8944b6ae (patch)
tree94a5b1d914996960882db66dc7d230e674fcce8f /audio/apulse/apulse.SlackBuild
parent78edbebc86d5072fa40de00e619d58a3971d2039 (diff)
downloadslackbuilds-711fbd0ed5d59eb89d09fa1b5db2012b8944b6ae.tar.gz
audio/apulse: Updated for version 20150103.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'audio/apulse/apulse.SlackBuild')
-rw-r--r--audio/apulse/apulse.SlackBuild40
1 files changed, 25 insertions, 15 deletions
diff --git a/audio/apulse/apulse.SlackBuild b/audio/apulse/apulse.SlackBuild
index 4f53eb3766..fecd4022a5 100644
--- a/audio/apulse/apulse.SlackBuild
+++ b/audio/apulse/apulse.SlackBuild
@@ -23,10 +23,13 @@
# <http://www.gnu.org/licenses/>.
PRGNAM=apulse
-VERSION=${VERSION:-0.1.5}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-20150103}
+SRCVERSION=${SRCVERSION:-aa73e4ecf972537649438e2076e10a40cc965bda}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+DOCS="LICENSE.MIT README.md"
+
## build with GLOBAL_LIBS=yes
## to install pulse libraries
## directly in lib* directories
@@ -76,13 +79,13 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-if [ -e $CWD/v$VERSION.tar.gz ]; then
- tar xvf $CWD/v$VERSION.tar.gz
+rm -rf $PRGNAM-$SRCVERSION
+if [ -e $CWD/$SRCVERSION.tar.gz ]; then
+ tar xvf $CWD/$SRCVERSION.tar.gz
else
- tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+ tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.gz
fi
-cd $PRGNAM-$VERSION
+cd $PRGNAM-$SRCVERSION
chown -R root:root .
find -L . \
\( -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
cd build-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 install DESTDIR=$PKG
- if [ "$GLOBAL_LIBS" = no ]; then
- mv $PKG/usr/bin/${PRGNAM} $PKG/usr/bin/${PRGNAM}32
- fi
cd ..
fi
mkdir -pv build
cd build
- cmake -DAPULSEPATH=/usr/lib${LIBDIRSUFFIX}${APULSELIBPATHSUFFIX} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
- make VERBOSE=1
- make install DESTDIR=$PKG
+cmake \
+ -DAPULSEPATH=/usr/lib${LIBDIRSUFFIX}${APULSELIBPATHSUFFIX} \
+ -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 ..
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
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
mkdir -p $PKG/install