--- admin/PlamoBuild-template-20170713 2017-07-13 13:07:00.000000000 +0900 +++ plamo/05_ext/libgphoto2/PlamoBuild.libgphoto2-2.5.5.1 2018-07-24 16:50:26.000000000 +0900 @@ -1,19 +1,21 @@ #!/bin/sh ###################################################################### -url="" +url="https://distfiles.macports.org/libgphoto2/libgphoto2-2.5.5.1.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/05_ext/libgphoto2/libgphoto2-2.5.5.1-jpeg_memsrcdest.patch" verify= digest= branch= commitid= -pkgbase= -vers= +pkgbase=libgphoto2 +vers=2.5.5.1 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" +patchfiles="libgphoto2-2.5.5.1-jpeg_memsrcdest.patch" OPT_CONFIG="" -DOCS="README" +DOCS="README HACKING TESTERS NEWS README.packaging COPYING AUTHORS + MAINTAINERS ABOUT-NLS ChangeLog INSTALL" template=20170713 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -65,16 +67,46 @@ make install DESTDIR=$P fi done + for i in AUTHORS COPYING NEWS ABOUT-NLS ChangeLog README{,.packaging} ; do + rm $docdir/libgphoto2/$i + done + find $docdir/libgphoto2/libgphoto2-api.html -exec touch {} \; touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/libgphoto2_port/0.10.0 + strip_libdir $P/usr/$libdir/libgphoto2/$vers + touch -t `date '+%m%d0900'` $P/usr/$libdir/libgphoto2{_port/0.10.0,/$vers} setup_docdir + mv $docdir/libgphoto2_port $docdir/$src + mv $docdir/libgphoto2 $docdir/$src/doc + mv $docdir/$src/{doc,{COPYING,AUTHORS,MAINTAINERS,ABOUT-NLS}.gz} $C + mv $docdir/$src/{{ChangeLog,INSTALL}.gz,libgphoto2_port} $C + mv $docdir/$src/{$func,$myname,$spec}.gz $C + mv $C/{doc,{COPYING,AUTHORS,MAINTAINERS,ABOUT-NLS}.gz} $docdir/$src + mv $C/{{ChangeLog,INSTALL}.gz,libgphoto2_port} $docdir/$src + mv $C/{$func,$myname,$spec}.gz $docdir/$src + touch -r $S $docdir/$src convert_links + prune_symlink $P/usr/include/gphoto2 + touch -t `date '+%m%d0900'` $P/usr/include/gphoto2 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 \ + `cd $P ; find usr/$libdir -maxdepth 1 -name libgphoto2_port.*` + tar rvpf $pkg.tar -C $P usr/$libdir/libgphoto2_port + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir -maxdepth 1 -name libgphoto2.*` + tar rvpf $pkg.tar -C $P usr/$libdir/libgphoto2 + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/udev | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/gphoto2 + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` + tar rvpf $pkg.tar -C $P usr/share/libgphoto2 + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man3 | 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