spotify: fix indentation

This commit is contained in:
Dominik Honnef 2015-11-21 14:27:36 +01:00
parent c2fbb2497f
commit 6f774d4815

View file

@ -5,26 +5,26 @@ _BUILDDIR="/tmp/spotify.build"
_LIBS=$(ldconfig -vNX -n /usr/lib 2>/dev/null)
linklib() {
_LIB=$(echo "$_LIBS" | grep -m 1 "${1}\.so" | sed 's/\s*\([^ ]*\).*$/\1/')
ln -sf "/usr/lib/${_LIB}" "/usr/share/spotify/libs/${1}.so.${2}"
_LIB=$(echo "$_LIBS" | grep -m 1 "${1}\.so" | sed 's/\s*\([^ ]*\).*$/\1/')
ln -sf "/usr/lib/${_LIB}" "/usr/share/spotify/libs/${1}.so.${2}"
}
if test "$ACTION" = "post"; then
. /usr/share/spotify/pkgdata
mkdir -p "$_BUILDDIR"
(
cd "$_BUILDDIR"
cd "$_BUILDDIR"
xbps-uhelper fetch "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_${SVERSION}.deb"
echo "${SCHECKSUM} spotify-client_${SVERSION}.deb" >checksum
sha256sum -c checksum || exit 1
ar x "spotify-client_${SVERSION}.deb"
echo "${SCHECKSUM} spotify-client_${SVERSION}.deb" >checksum
sha256sum -c checksum || exit 1
ar x "spotify-client_${SVERSION}.deb"
[ -f data.tar.gz ] && tar xzf data.tar.gz 2>/dev/null
[ -f data.tar.xz ] && tar xJf data.tar.xz 2>/dev/null
) || {
echo Error while extracting;
rm -r "$_BUILDDIR";
exit 1;
}
) || {
echo Error while extracting;
rm -r "$_BUILDDIR";
exit 1;
}
mkdir -p /usr/share/licenses/spotify
mv "${_BUILDDIR}/usr/share/doc/spotify-client/copyright" /usr/share/licenses/spotify/