--- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/04_xapps/emacs.txz/old/emacs-20160709/PlamoBuild.emacs-24.5 2016-07-09 22:50:53.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.xz + http://homepage1.nifty.com/blankspace/emacs/wb-line-number.el" +pkgbase=emacs +vers=24.5 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--with-x-toolkit=gtk3 --without-rsvg --without-imagemagick + --without-gsettings --without-selinux" +DOCS="README INSTALL COPYING BUGS ChangeLog" ###################################################################### fscheck() { @@ -233,6 +235,17 @@ esac done done + cd $B + cp -p lisp/eshell/esh-util.el{,.orig} + sed -i 's@|z2\\\\@&|xz\\\\@g' lisp/eshell/esh-util.el + cp -p lisp/ibuffer.el{,.orig} + sed -i 's@|z\\\\@&|txz\\\\@g' lisp/ibuffer.el + cp -p lisp/ldefs-boot.el{,.orig} + cp -p lisp/loaddefs.el{,.orig} + sed -i 's@"\.tgz"@& ".txz"@g' lisp/{ldefs-boot,loaddefs}.el + cp -p lisp//pcmpl-gnu.el{,.orig} + sed -i -e '/let/s@|bz2\\\\@&|txz\\\\@g' \ + -e '/let/!s@|z2\\\\@&|xz\\\\@g' lisp/pcmpl-gnu.el for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -272,11 +285,16 @@ make install DESTDIR=$P fi done + find $P/usr/share/emacs/$vers/lisp -mtime -1 -exec touch {} \; + chgrp -R root $P/usr/share/emacs/$vers/{etc,lisp} + install -m 644 $W/wb-line-number.el $P/usr/share/emacs/site-lisp touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/libexec/emacs/$vers/* + touch -t `date '+%m%d0900'` $P/usr/libexec/emacs/$vers/* for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,8 +314,15 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/libexec/emacs + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/applications | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/icons -type f` + tar rvpf $pkg.tar -C $P usr/share/emacs + tar rvpf $pkg.tar -C $P var/games/emacs + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | 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 + 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 read -p "Do you want to keep work files? [y/N] " ans