--- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/05_ext/AV.txz/old/pulseaudio-20160607/PlamoBuild.pulseaudio-7.1 2016-06-07 17:03:19.000000000 +0900 @@ -1,15 +1,14 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://freedesktop.org/software/pulseaudio/releases/pulseaudio-7.1.tar.xz" +pkgbase=pulseaudio +vers=7.1 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="LICENSE README NEWS PROTOCOL ABOUT-NLS LGPL GPL todo" ###################################################################### fscheck() { @@ -155,6 +154,7 @@ convert() { for i in {$P,$P/usr}/{sbin,bin} ; do prune_symlink $i ; done for i in {$P,$P/usr}/$libdir ; do prune_symlink $i ; done + prune_symlink $P/usr/share/bash-completion/completions prune_symlink $infodir for i in `seq 9` n ; do prune_symlink $mandir/man$i ; done } @@ -224,17 +224,6 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} - for j in ${patchfiles[$i]} ; do - case ${j##*.} in - gz) gunzip -c $W/$j | patch -Np1 -i - ;; - bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; - xz) unxz -c $W/$j | patch -Np1 -i - ;; - *) patch -Np1 -i $W/$j ;; - esac - done - done - for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -272,11 +261,34 @@ make install DESTDIR=$P fi done + cat <<- "EOF" > $P/etc/asound.conf + pcm.pulse { + type pulse + } + + ctl.pulse { + type pulse + } + + pcm.!default { + type pulse + } + + ctl.!default { + type pulse + } + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/libexec/pulse + strip_libdir $P/usr/$libdir/pulseaudio + strip_libdir $P/usr/$libdir/pulse-$vers/modules + touch -t `date '+%m%d0900'` $P/usr/libexec/pulse + touch -t `date '+%m%d0900'` $P/usr/$libdir/pulseaudio + touch -t `date '+%m%d0900'` $P/usr/$libdir/pulse-$vers/modules for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,9 +307,39 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done convert + touch -t `date '+%m%d0900'` $P/usr/share/bash-completion/completions + cat <<- "EOF" >> $P/install/doinst.sh + if [ -x usr/bin/esd ] ; then + ( cd usr/bin ; rm -rf esd ) + ( cd usr/bin ; ln -sf esdcompat esd ) + fi + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/libexec/pulse + tar rvpf $pkg.tar -C $P usr/$libdir/pulseaudio + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir -maxdepth 1 -name libpulse*` + tar rvpf $pkg.tar -C $P usr/$libdir/pulse-$vers + tar rvpf $pkg.tar -C $P usr/$libdir/cmake/PulseAudio + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/pulse + tar rvpf $pkg.tar -C $P usr/share/pulseaudio + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/bash-completion/completions | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/vala/vapi | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/zsh/site-functions | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find etc/dbus-1/system.d | tail -n+2` + tar rvpf $pkg.tar -C $P etc/pulse + tar rvpf $pkg.tar -C $P `cd $P ; find etc/xdg/autostart | tail -n+2` + tar rvpf $pkg.tar -C $P etc/asound.conf + tar rvpf $pkg.tar -C $P `cd $P ; find lib/udev/rules.d | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2` tar rvpf $pkg.tar -C $P usr/share/doc/$src + tar rvpf $pkg.tar -C $P install/doinst.sh touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz read -p "Do you want to keep work files? [y/N] " ans