add mopidy
This commit is contained in:
parent
b2dc2858e1
commit
2f33ec705d
1 changed files with 69 additions and 0 deletions
69
n/mopidy/mopidy.SlackBuild
Executable file
69
n/mopidy/mopidy.SlackBuild
Executable file
|
@ -0,0 +1,69 @@
|
||||||
|
#!/bin/sh -x
|
||||||
|
|
||||||
|
# variables
|
||||||
|
TAG=cyco
|
||||||
|
TMP=/tmp/$TAG
|
||||||
|
CWD=$(pwd)
|
||||||
|
OUTPUT=/tmp
|
||||||
|
|
||||||
|
PRGNAM=$(basename $CWD)
|
||||||
|
PKG=$TMP/pkg-$PRGNAM
|
||||||
|
|
||||||
|
VERSION=$(date +%Y.%m.%d_%H.%M)
|
||||||
|
|
||||||
|
DOCS="AUTHORS LICENSE README.rst dev-requirements.txt"
|
||||||
|
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
BUILD=1
|
||||||
|
|
||||||
|
PREFIX=/usr
|
||||||
|
|
||||||
|
SLCKFLAGS="-fPIC -O2"
|
||||||
|
|
||||||
|
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||||
|
# nettoyage préalable
|
||||||
|
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||||
|
|
||||||
|
mkdir -p $PKG
|
||||||
|
|
||||||
|
# mise en place
|
||||||
|
cd $TMP
|
||||||
|
if [ ! -e $REPOSITORIES/$PRGNAM ] ; then
|
||||||
|
git clone https://github.com/mopidy/mopidy.git $REPOSITORIES/${PRGNAM}
|
||||||
|
else
|
||||||
|
( cd $REPOSITORIES/${PRGNAM}
|
||||||
|
git pull
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
cp -R $REPOSITORIES/${PRGNAM} $TMP/$PRGNAM-$VERSION
|
||||||
|
cd $TMP/$PRGNAM-$VERSION
|
||||||
|
|
||||||
|
# installation
|
||||||
|
python ./setup.py install --root=$PKG
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -R $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
|
||||||
|
# correction
|
||||||
|
cd $PKG
|
||||||
|
chown -R root:root *
|
||||||
|
|
||||||
|
# embaumement
|
||||||
|
mkdir -p $PKG/install
|
||||||
|
cat <<EOF > $PKG/install/slack-desc
|
||||||
|
$PRGNAM: $PRGNAM (extensible music server written in Python.)
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: Mopidy is an extensible music server that plays music from local disk, Spotify,
|
||||||
|
$PRGNAM: SoundCloud, Google Play Music, and more. You edit the playlist from any phone,
|
||||||
|
$PRGNAM: tablet, or computer using a range of MPD and web clients.
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: https://www.mopidy.com/
|
||||||
|
$PRGNAM:
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# empaquetage
|
||||||
|
cd $PKG
|
||||||
|
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
Loading…
Add table
Reference in a new issue