|
原生支持unicode的emacs-unicode-branch
根据emacs21的PKGBUILD修改而成,在我机器上正常使用
- pkgname=emacs
- pkgver=23.0.0
- pkgrel=1
- pkgdesc="The Emacs Editor"
- url="http://www.gnu.org/software/emacs/emacs.html"
- depends=('ncurses' 'libpng' 'libtiff' 'libungif' 'xaw3d' )
- makedepends=('openssh' 'cvs')
- source=()
- build() {
- cd $startdir/src
- export CVS_RSH="ssh"
- cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/cvsroot/emacs co -r emacs-unicode-2 emacs
- cd $startdir/src/$pkgname
- ./configure --prefix=/usr \
- --with-xpm \
- --with-jpeg \
- --with-tiff \
- --with-gif \
- --with-png \
- --with-gtk \
- --without-toolkit-scroll-bars \
- --with-x
- make bootstrap
- # # we don't want to use /usr/libexec
- sed -i "s|"/usr/libexec/emacs.*$|"/usr/lib/emacs/$pkgver"|g" src/epaths.h
- make libexecdir=/usr/lib archlibdir=/usr/lib/emacs/${pkgver} || return 1
- make prefix=$startdir/pkg/usr libexecdir=$startdir/pkg/usr/lib archlibdir=$startdir/pkg/usr/lib/emacs/${pkgver} install
- # remove conflict with ctags package
- mv $startdir/pkg/usr/bin/{ctags,ctags.emacs} || return 1
- mv $startdir/pkg/usr/bin/{etags,etags.emacs} || return 1
- mv $startdir/pkg/usr/man/man1/{etags.1,etags.emacs.1} || return 1
- mv $startdir/pkg/usr/man/man1/{ctags.1,ctags.emacs.1} || return 1
- # fix all the 777 perms on directories
- find $startdir/pkg/usr/share/emacs/$pkgver -type d -exec chmod 755 {} \;
- }
复制代码 |
|