--- admin/PlamoBuild-template-20180815 2018-08-15 16:18:50.000000000 +0900 +++ plamo/05_ext/python_append.txz/python_six/PlamoBuild.python_six-1.10.0 2019-02-27 14:42:17.000000000 +0900 @@ -1,19 +1,20 @@ #!/bin/sh ###################################################################### -url="" +url="https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz" verify= digest= branch= commitid= -pkgbase= -vers= +pkgbase=python_six +vers=1.10.0 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src[0]=six-$vers +src[1]=six-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="CHANGES LICENSE README" template=20180815 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -44,6 +45,10 @@ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi + case $i in + 0) python setup.py config ;; + 1) python3 setup.py config ;; + esac done fi if [ $opt_build -eq 1 ] ; then @@ -52,6 +57,10 @@ if [ -f Makefile ] ; then make fi + case $i in + 0) python setup.py build ;; + 1) python3 setup.py build ;; + esac done fi if [ $opt_package -eq 1 ] ; then @@ -64,6 +73,10 @@ if [ -f Makefile ] ; then make install DESTDIR=$P fi + case $i in + 0) python setup.py install --root $P ;; + 1) python3 setup.py install --root $P ;; + esac done touch $W/i.et cd $W @@ -72,8 +85,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/python2*/site-packages -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir/python3*/site-packages -maxdepth 1 | 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