--- admin/PlamoBuild-template-20180815 2018-08-15 16:18:50.000000000 +0900 +++ plamo/02_x11/Xwindow.txz/libvdpau_va_gl/PlamoBuild.libvdpau_va_gl-0.3.4 2019-08-23 14:11:08.000000000 +0900 @@ -1,19 +1,19 @@ #!/bin/sh ###################################################################### -url="" +url="https://github.com/i-rinat/libvdpau-va-gl/releases/download/v0.3.4/libvdpau-va-gl-0.3.4.tar.gz" verify= digest= branch= commitid= -pkgbase= -vers= +pkgbase=libvdpau_va_gl +vers=0.3.4 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P7 +src=libvdpau-va-gl-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING COPYING.GPLv3 COPYING.LGPLv3 ChangeLog README.md" template=20180815 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -29,12 +29,14 @@ fscheck prepare "$@" +S2=$W/source if [ $opt_download -eq 1 ] ; then download_sources 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]} + if [ -d ${S2[$i]} ] ; then rm -rf ${S2[$i]} ; fi ; cp -a ${S[$i]} ${S2[$i]} + if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; mkdir ${B[$i]} done apply_patches for i in `seq 0 $((${#B[@]} - 1))` ; do @@ -45,6 +47,9 @@ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_INSTALL_DIR=/usr/$libdir \ + -DLIB_SUFFIX=`[ $arch == x86_64 ] && echo 64` $S2 fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do @@ -65,6 +70,7 @@ make install DESTDIR=$P fi done + touch $P/usr/$libdir/* touch $W/i.et cd $W TZ=UTC find $P ! -type l -newer i.st ! -newer i.et \ @@ -72,9 +78,9 @@ 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 usr/share/doc/$src + tar rvpf $pkg.tar -C $P install/doinst.sh TZ=UTC touch -t `date -u '+%m%d0000'` $pkg.tar xz $pkg.tar ; touch $pkg.tar.xz ; mv $pkg.tar.xz $pkg.txz cleanup