updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / abntex / PKGBUILD
blob3091585122bfe864bb4db7cdb6dce5f739f30e06
1 # Maintainer: Tiago Camargo <tcamargo@gmail.com>
2 # Contributor: Robson Roberto Souza Peixoto <robsonpeixoto@gmail.com>
3 pkgname=abntex
4 pkgver=0.9_beta2
5 _pkgver=${pkgver/_/-}
6 pkgrel=2
7 pkgdesc='abntex is a class LaTeX for writing documents in ABNT standard.'
8 arch=('i686' 'x86_64')
9 url="http://abntex.sourceforge.net/"
10 license=('LPPL')
11 depends=('texlive-core')
12 install=$pkgname.install
13 source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${_pkgver}.tar.gz")
14 md5sums=('4c5bc2d5388ddf03df754072116ab1f8')
16 build() {
17   cd "${srcdir}/${pkgname}-${_pkgver:0:3}"
19   # Lyx layout
20   install -D -m 644 lyx/layouts/abnt.layout \
21     "${pkgdir}/usr/share/lyx/layouts/abnt.layout"
23   install -dm755 "${pkgdir}/usr/share/texmf-dist/"
25   for subdir in bibtex makeindex tex; do
26     cp -r "texmf/${subdir}" "${pkgdir}/usr/share/texmf-dist/"
27   done
29   cd "${pkgdir}/usr/share/texmf-dist"
30   find . -type d -exec chmod 755 {} \;
31   find . -type f -exec chmod 644 {} \;