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