--- admin/PlamoBuild-template-20180815 2018-08-15 16:18:50.000000000 +0900 +++ plamo/03_xclassics/mf2t/PlamoBuild.mf2t-1.0 2019-10-14 11:37:52.000000000 +0900 @@ -1,19 +1,20 @@ #!/bin/sh ###################################################################### -url="" +url="http://archive.cs.uu.nl/pub/MIDI/PROGRAMS/mf2tsrc.zip + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/03_xclassics/mf2t/mf2t-eval_order.patch.gz" verify= digest= branch= commitid= -pkgbase= -vers= +pkgbase=mf2t +vers=1.0 arch=`uname -m` -build=P1 +build=P6 src=$pkgbase-$vers -patchfiles="" +patchfiles="mf2t-eval_order.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="README.TXT `echo example{1,2,3,4,5}.{mid,txt}`" template=20180815 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -30,13 +31,21 @@ fscheck prepare "$@" if [ $opt_download -eq 1 ] ; then - download_sources + false && download_sources + for i in $url ; do if [ ! -f ${i##*/} ] ; then wget $i ; fi ; done + for i in $url ; do + case ${i##*.} in + zip) ( mkdir $S ; cd $S ; unzip $W/${i##*/} ) ;; + esac + done fi if [ $opt_config -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done apply_patches + cd $B + cp -p makefile.unx Makefile for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -x configure ] ; then @@ -65,15 +74,17 @@ make install DESTDIR=$P fi done + install -d $P/usr/bin + install mf2t t2mf $P/usr/bin touch $W/i.et cd $W TZ=UTC find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date -u '+%m%d0000'` {} \; compress setup_docdir + TZ=UTC touch -t `date -u '+%m%d0000'` $docdir/$src convert_links tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | 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 usr/share/doc/$src TZ=UTC touch -t `date -u '+%m%d0000'` $pkg.tar xz $pkg.tar ; touch $pkg.tar.xz ; mv $pkg.tar.xz $pkg.txz