# Maintainer: LinRs <20455421+LinRs AT users.noreply.github.com> # Contributor: Eric Bélanger pkgname=auctex pkgver=12.1 pkgrel=2 pkgdesc="An extensible package for writing and formatting TeX files in Emacs" arch=('x86_64') url="https://www.gnu.org/software/auctex/" license=('GPL3') depends=('emacs' 'ghostscript' 'texlive-core') options=('!makeflags') install=auctex.install source=("https://ftp.gnu.org/pub/gnu/auctex/${pkgname}-${pkgver}.tar.gz"{,.sig}) sha256sums=('c95cca4d70a9783617f7b5035c5e2c77438fa35d2505555d40190ac2652a5db4' 'SKIP') validpgpkeys=('70CDE487C45540307F86972BE2FD58BF20485F50') #Mosè Giordano prepare() { cd ${pkgname}-${pkgver} sed -i 's/as_fn_error $? "--with-texmf-dir=/echo as_fn_error $? "--with-texmf-dir=/' configure } build() { cd ${pkgname}-${pkgver} ./configure --prefix=/usr --localstatedir=/var --with-texmf-dir=/usr/share/texmf make } package() { cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install }