wok annotate mpd/receipt @ rev 22582
updated cbatticon (1.6.8 -> 1.6.10)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jan 07 13:43:08 2020 +0100 (2020-01-07) |
parents | 6e8b1bcb30e2 |
children | a3c45ab9082e |
rev | line source |
---|---|
paul@1375 | 1 # SliTaz package receipt. |
paul@1375 | 2 |
paul@1375 | 3 PACKAGE="mpd" |
Hans-G?nter@21482 | 4 VERSION="0.21.8" |
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@20671 | 9 WEB_SITE="https://www.musicpd.org/" |
Hans-G?nter@21482 | 10 |
Hans-G?nter@21482 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@21482 | 12 WGET_URL="${WEB_SITE}download/$PACKAGE/${VERSION%.*}/$TARBALL" |
Hans-G?nter@21482 | 13 |
Hans-G?nter@21482 | 14 DEPENDS="alsa-lib audiofile faad2 flac glib lame libboost \ |
Hans-G?nter@21482 | 15 libcrypto libcurl libid3tag libmad libogg libsamplerate \ |
Hans-G?nter@21482 | 16 libvorbis libwrap sqlite" |
Hans-G?nter@21482 | 17 BUILD_DEPENDS="alsa-lib-dev audiofile-dev curl-dev faad2-dev flac-dev \ |
Hans-G?nter@21482 | 18 gcc83 glib-dev lame-dev libboost-dev libid3tag-dev \ |
Hans-G?nter@21482 | 19 libmad-dev libogg-dev libsamplerate-dev libvorbis-dev \ |
Hans-G?nter@21482 | 20 libwrap-dev meson zlib-dev" |
Hans-G?nter@21482 | 21 |
pankso@16016 | 22 HOST_ARCH="i486 arm" |
pascal@15001 | 23 |
pankso@16016 | 24 # Handle SliTaz arch |
pankso@16016 | 25 case "$SLITAZ_ARCH" in |
al@18741 | 26 arm) |
pankso@16105 | 27 DEPENDS="alsa-lib zlib glib lame libmad libsamplerate libwrap \ |
Hans-G?nter@21482 | 28 libogg libvorbis" ;; |
pankso@16016 | 29 esac |
pankso@16016 | 30 |
pankso@16016 | 31 # Handle cross comilation |
pankso@16016 | 32 case "$ARCH" in |
pankso@16016 | 33 arm) |
pankso@16034 | 34 BUILD_DEPENDS="alsa-lib-dev zlib-dev glib-dev libgio-dev lame-dev \ |
Hans-G?nter@21482 | 35 libmad-dev libsamplerate-dev libwrap-dev libogg-dev libvorbis-dev" ;; |
pankso@16016 | 36 esac |
paul@1375 | 37 |
paul@1375 | 38 # Rules to configure and make the package. |
paul@1375 | 39 compile_rules() |
paul@1375 | 40 { |
Hans-G?nter@21482 | 41 # sed -i 's/<stdbool.h>/&\n#include <stdio.h>/' src/decoder_api.h |
Hans-G?nter@21482 | 42 export CC=gcc-83 |
Hans-G?nter@21482 | 43 export CXX=g++-83 |
Hans-G?nter@21482 | 44 meson . output \ |
Hans-G?nter@21482 | 45 -Djack=disabled \ |
Hans-G?nter@21482 | 46 -Dao=disabled \ |
Hans-G?nter@21482 | 47 -Dmodplug=disabled \ |
Hans-G?nter@21482 | 48 -Dmms=disabled \ |
Hans-G?nter@21482 | 49 -Dffmpeg=disabled \ |
Hans-G?nter@21482 | 50 -Dwavpack=disabled \ |
Hans-G?nter@21482 | 51 -Dsystemd=disabled \ |
Hans-G?nter@21482 | 52 -Dzeroconf=disabled && |
Hans-G?nter@21482 | 53 ninja -C output && |
Hans-G?nter@21482 | 54 ninja -C output install |
paul@1375 | 55 } |
paul@1375 | 56 |
paul@1375 | 57 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@1375 | 58 genpkg_rules() |
paul@1375 | 59 { |
Hans-G?nter@21482 | 60 mkdir -p $fs/usr/sbin |
Hans-G?nter@21482 | 61 mkdir -p $fs/etc |
Hans-G?nter@21482 | 62 cp -a $install/usr/bin/mpd $fs/usr/sbin |
Hans-G?nter@21482 | 63 cp $install/usr/share/doc/mpd/mpdconf.example \ |
Hans-G?nter@21482 | 64 $fs/etc/mpd.conf |
Hans-G?nter@21482 | 65 cp -a $stuff/* $fs |
paul@1375 | 66 } |
paul@1375 | 67 |
paul@1375 | 68 post_install() |
paul@1375 | 69 { |
al@18741 | 70 newline |
paul@1375 | 71 # Drop root priviledges and enable pid file |
al@18741 | 72 action 'Enabling mpd.conf...' |
pankso@16016 | 73 cd $root/etc |
paul@4808 | 74 sed -i 's/#music_directory/music_directory/; \ |
paul@4808 | 75 s/#playlist_directory/playlist_directory/; \ |
paul@4808 | 76 s/#db_file/db_file/; \ |
paul@4808 | 77 s/#pid_file/pid_file/; \ |
paul@4808 | 78 s/#user "nobody"/user "tux"/; \ |
paul@4808 | 79 s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf |
paul@1375 | 80 status |
al@18741 | 81 |
paul@1375 | 82 # Make mpd directories and files |
al@18741 | 83 action 'Enabling mpd files and directories...' |
pankso@16016 | 84 mkdir $root/etc/skel/music |
pankso@16016 | 85 mkdir -p $root/etc/skel/.mpd/playlists |
pankso@16016 | 86 touch $root/etc/skel/.mpd/mpd.log |
pankso@16016 | 87 #touch $root/etc/skel/.mpd/mpd.error |
pankso@16016 | 88 cp -f $root/etc/mpd.conf /etc/skel/.mpd |
paul@1375 | 89 status |
paul@1375 | 90 } |