--- admin/PlamoBuild-template-20170713 2017-07-13 13:07:00.000000000 +0900 +++ plamo/05_ext/AV.txz/xvidcore/PlamoBuild.xvidcore-1.3.2 2018-05-01 08:40:01.000000000 +0900 @@ -1,19 +1,20 @@ #!/bin/sh ###################################################################### -url="" +url="http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz" verify= digest= branch= commitid= -pkgbase= -vers= +pkgbase=xvidcore +vers=1.3.2 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P4 +src=$pkgbase patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog doc/INSTALL doc/README LICENSE TODO CodingStyle + ChangeLog-1.0 README AUTHORS" template=20170713 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -38,7 +39,7 @@ done apply_patches for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/build/generic if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ @@ -48,7 +49,7 @@ fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/build/generic if [ -f Makefile ] ; then make fi @@ -60,11 +61,15 @@ if [ -d $C ] ; then rm -rf $C ; fi ; mkdir -p $C touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/build/generic if [ -f Makefile ] ; then make install DESTDIR=$P fi done + mv $P/usr/$libdir/libxvidcore.a $C + ln -s libxvidcore.so.4.3 $P/usr/$libdir/libxvidcore.so.4 + ln -s libxvidcore.so.4.3 $P/usr/$libdir/libxvidcore.so + mv $C/libxvidcore.a $P/usr/$libdir touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -72,9 +77,10 @@ compress setup_docdir 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 cvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | 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 cleanup