You are not logged in.

#1 2004-06-16 10:27:10

Namlook
Member
From: France / Montpellier
Registered: 2004-05-30
Posts: 74

AucTeX

Hi all !

This is a PKGBUILD for auctex (a TeX plug-in for Emacs). It works just fine on my system. Don't forget to add the line in your .emacs ;-)

pkgname=auctex
pkgver=11.14
pkgrel=1
pkgdesc="AUCTeX is a package that supports writing and formatting TeX files for Emacs."
url="http://www.gnu.org/software/auctex/"
license="gpl"
depends=('emacs' 'tetex')
install=auctex.install
source=(http://ftp.gnu.org/pub/gnu/auctex/11.14/$pkgname-$pkgver.tar.gz)
md5sums=('8b0dd6adedfd3c84f94e30b07011f0c9')

build() {
  cd $startdir/src/$pkgname-$pkgver
  make || return 1
  mkdir -p $startdir/pkg/usr/share/emacs/site-lisp
  make prefix=$startdir/pkg/usr lispdir=$startdir/pkg/usr/share/emacs/site-lisp install
}

and this is the auctex.install

# arg 1:  the new package version
post_install() {
   echo 
   echo
   echo
   echo "Please add the following line in your .emacs"
   echo "(require 'tex-site)"
   echo
   echo "Have Fun :-)"
   echo
   echo
   echo
  /bin/true
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  /bin/true
}

# arg 1:  the old package version
pre_remove() {
  /bin/true
}

# arg 1:  the old package version
post_remove() {
   echo 
   echo
   echo
   echo "Please remove the following line in your .emacs"
   echo "(require 'tex-site)"
   echo
   echo
   echo
  /bin/true
}

op=$1
shift
$op $*

Have fun !

Namlook :-)

Offline

Board footer

Powered by FluxBB