wok-next annotate mpd/receipt @ rev 20996

Move fonts-liberation*
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Oct 04 16:01:47 2018 +0300 (2018-10-04)
parents e6615350078d
children d5aab818505e
rev   line source
paul@1375 1 # SliTaz package receipt.
paul@1375 2
paul@1375 3 PACKAGE="mpd"
devl547@13807 4 VERSION="0.17.2"
paul@1375 5 CATEGORY="multimedia"
paul@1375 6 SHORT_DESC="Music Player Daemon (MPD)."
paul@1375 7 MAINTAINER="paul@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
pascal@15001 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@15001 10 WEB_SITE="http://www.musicpd.org/"
pascal@15001 11 WGET_URL="$SF_MIRROR/musicpd/$TARBALL"
pascal@15001 12
pascal@5004 13 DEPENDS="libid3tag libmad libogg libvorbis libsamplerate flac alsa-lib \
al@20453 14 audiofile faad2 lame sqlite3 libcurl glib openssl libwrap"
paul@1387 15 BUILD_DEPENDS="alsa-lib-dev zlib-dev libid3tag-dev libsamplerate-dev \
al@18741 16 libmad-dev libogg-dev libvorbis-dev flac-dev audiofile-dev faad2-dev \
mojo@17079 17 glib-dev lame-dev libwrap-dev curl-dev"
pankso@16016 18
pankso@16016 19 # Handle SliTaz arch
pankso@16016 20 case "$SLITAZ_ARCH" in
al@18741 21 arm)
pankso@16105 22 DEPENDS="alsa-lib zlib glib lame libmad libsamplerate libwrap \
pankso@16105 23 libogg libvorbis" ;;
pankso@16016 24 esac
pankso@16016 25
pankso@16016 26 # Handle cross comilation
pankso@16016 27 case "$ARCH" in
pankso@16016 28 arm)
al@19779 29 BUILD_DEPENDS="alsa-lib-dev zlib-dev glib-dev lame-dev \
pankso@16105 30 libmad-dev libsamplerate-dev libwrap-dev libogg-dev libvorbis-dev" ;;
pankso@16016 31 esac
paul@1375 32
paul@1375 33 # Rules to configure and make the package.
paul@1375 34 compile_rules()
paul@1375 35 {
pascal@12676 36 sed -i 's/<stdbool.h>/&\n#include <stdio.h>/' src/decoder_api.h
pankso@16016 37 ./configure \
pankso@16016 38 --disable-jack \
pankso@16016 39 --disable-ao \
pankso@16016 40 --disable-modplug \
pankso@16016 41 --disable-mms \
pankso@16016 42 --disable-ffmpeg \
pankso@16016 43 --disable-wavpack \
pankso@16016 44 --disable-systemd-daemon \
pankso@16016 45 --with-zeroconf=no \
pankso@16016 46 $CONFIGURE_ARGS &&
pankso@16016 47 make && make install
paul@1375 48 }
paul@1375 49
paul@1375 50 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@1375 51 genpkg_rules()
paul@1375 52 {
pankso@16016 53 mkdir -p $fs/usr/sbin $fs/etc
devl547@13807 54 cp -a $install/usr/bin/mpd $fs/usr/sbin
devl547@13807 55 cp $install/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf
pascal@10908 56 cp -a $stuff/* $fs
paul@1375 57 }
paul@1375 58
paul@1375 59 post_install()
paul@1375 60 {
al@18741 61 newline
paul@1375 62 # Drop root priviledges and enable pid file
al@18741 63 action 'Enabling mpd.conf...'
pankso@16016 64 cd $root/etc
paul@4808 65 sed -i 's/#music_directory/music_directory/; \
paul@4808 66 s/#playlist_directory/playlist_directory/; \
paul@4808 67 s/#db_file/db_file/; \
paul@4808 68 s/#pid_file/pid_file/; \
paul@4808 69 s/#user "nobody"/user "tux"/; \
paul@4808 70 s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf
paul@1375 71 status
al@18741 72
paul@1375 73 # Make mpd directories and files
al@18741 74 action 'Enabling mpd files and directories...'
pankso@16016 75 mkdir $root/etc/skel/music
pankso@16016 76 mkdir -p $root/etc/skel/.mpd/playlists
pankso@16016 77 touch $root/etc/skel/.mpd/mpd.log
pankso@16016 78 #touch $root/etc/skel/.mpd/mpd.error
pankso@16016 79 cp -f $root/etc/mpd.conf /etc/skel/.mpd
paul@1375 80 status
paul@1375 81 }