wok-next annotate mpd/receipt @ rev 21402

updated php (7.4.4 -> 7.4.5)
author Hans-G?nter Theisgen
date Tue Apr 21 07:47:41 2020 +0100 (2020-04-21)
parents 0c430fcaf2d9
children
rev   line source
al@21020 1 # SliTaz package receipt v2.
paul@1375 2
paul@1375 3 PACKAGE="mpd"
Hans-G?nter@21375 4 VERSION="0.21.22"
paul@1375 5 CATEGORY="multimedia"
al@21020 6 SHORT_DESC="Music Player Daemon (MPD)"
paul@1375 7 MAINTAINER="paul@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
al@21033 9 WEB_SITE="https://www.musicpd.org/"
al@21020 10
pascal@15001 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@15001 12 WGET_URL="$SF_MIRROR/musicpd/$TARBALL"
pascal@15001 13
Hans-G?nter@21375 14 BUILD_DEPENDS="alsa-lib-dev audiofile-dev curl-dev faad2-dev flac-dev
Hans-G?nter@21375 15 glib-dev lame-dev libid3tag-dev libmad-dev libogg-dev
Hans-G?nter@21375 16 libsamplerate-dev libvorbis-dev libwrap-dev zlib-dev"
pankso@16016 17
Hans-G?nter@21375 18 compile_rules()
Hans-G?nter@21375 19 {
al@21020 20 sed -i 's/<stdbool.h>/&\n#include <stdio.h>/' src/decoder_api.h
pankso@16016 21
Hans-G?nter@21375 22 ./configure \
Hans-G?nter@21375 23 --disable-jack \
Hans-G?nter@21375 24 --disable-ao \
Hans-G?nter@21375 25 --disable-modplug \
Hans-G?nter@21375 26 --disable-mms \
Hans-G?nter@21375 27 --disable-ffmpeg \
Hans-G?nter@21375 28 --disable-wavpack \
Hans-G?nter@21375 29 --disable-systemd-daemon \
Hans-G?nter@21375 30 --with-zeroconf=no \
pankso@16016 31 $CONFIGURE_ARGS &&
al@21020 32 make &&
al@21020 33 make install
paul@1375 34 }
paul@1375 35
Hans-G?nter@21375 36 genpkg_rules()
Hans-G?nter@21375 37 {
Hans-G?nter@21375 38 mkdir -p $fs/usr/sbin
Hans-G?nter@21375 39 mkdir -p $fs/etc
Hans-G?nter@21375 40
Hans-G?nter@21375 41 cp -a $install/usr/bin/mpd $fs/usr/sbin
Hans-G?nter@21375 42 cp $install/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf
Hans-G?nter@21375 43 cp -a $stuff/* $fs
Hans-G?nter@21375 44
Hans-G?nter@21375 45 DEPENDS="alsa-lib audiofile faad2 flac glib lame libcurl libid3tag
Hans-G?nter@21375 46 libmad libogg libsamplerate libvorbis libwrap openssl sqlite3"
paul@1375 47 }
paul@1375 48
Hans-G?nter@21375 49 post_install()
Hans-G?nter@21375 50 {
al@18741 51 newline
Hans-G?nter@21375 52 # Drop root privileges and enable pid file
al@18741 53 action 'Enabling mpd.conf...'
pankso@16016 54 cd $root/etc
paul@4808 55 sed -i 's/#music_directory/music_directory/; \
Hans-G?nter@21375 56 s/#playlist_directory/playlist_directory/; \
Hans-G?nter@21375 57 s/#db_file/db_file/; \
Hans-G?nter@21375 58 s/#pid_file/pid_file/; \
Hans-G?nter@21375 59 s/#user "nobody"/user "tux"/; \
Hans-G?nter@21375 60 s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf
paul@1375 61 status
al@18741 62
paul@1375 63 # Make mpd directories and files
al@18741 64 action 'Enabling mpd files and directories...'
pankso@16016 65 mkdir $root/etc/skel/music
pankso@16016 66 mkdir -p $root/etc/skel/.mpd/playlists
pankso@16016 67 touch $root/etc/skel/.mpd/mpd.log
pankso@16016 68 #touch $root/etc/skel/.mpd/mpd.error
pankso@16016 69 cp -f $root/etc/mpd.conf /etc/skel/.mpd
paul@1375 70 status
paul@1375 71 }