updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / emacs-else / PKGBUILD
blob7db9b20a52617ca6ddc6d8a8dd1020a71fb3f8a0
1 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
2 pkgname=emacs-else  
3 pkgver=1.22
4 pkgrel=1
5 pkgdesc="Emacs Language Sensitive Editor -- minor mode to use language specific abbreviations"
6 url="http://home.exetel.com.au/peterm"
7 arch=('any')
8 license=('GPL')
9 depends=('emacs')
10 conflicts=('else')
11 replaces=('else')
12 source=(http://home.exetel.com.au/peterm/download/else-mode.el \
13   http://home.exetel.com.au/peterm/download/else.texi \
14   http://home.exetel.com.au/peterm/download/setnu.el \
15   http://home.exetel.com.au/peterm/download/expand-a-word.el \
16   http://home.exetel.com.au/peterm/download/C.lse \
17   http://home.exetel.com.au/peterm/download/C-cust.lse \
18   http://home.exetel.com.au/peterm/download/Emacs-Lisp.lse \
19   http://home.exetel.com.au/peterm/download/LaTeX.lse \
20   http://home.exetel.com.au/peterm/download/LaTeX-cust.lse \
21   http://home.exetel.com.au/peterm/download/Python.lse \
22   http://home.exetel.com.au/peterm/download/Python-cust.lse \
23   http://home.exetel.com.au/peterm/download/Java.lse \
24   http://home.exetel.com.au/peterm/download/Java-cust.lse \
25   http://home.exetel.com.au/peterm/download/C++.lse \
26   http://home.exetel.com.au/peterm/download/C++-cust.lse \
27   http://home.exetel.com.au/peterm/download/Ada95.lse \
28   http://home.exetel.com.au/peterm/download/Ada95-cust.lse \
29   http://home.comcast.net/~dharter46/html.lse \
30   http://home.comcast.net/~dharter46/bourne_shell.lse \
31   http://home.comcast.net/~dharter46/c_shell.lse \
32   http://home.comcast.net/~dharter46/cobol.lse \
33   http://home.comcast.net/~dharter46/F90.lse \
34   http://home.comcast.net/~dharter46/Fortran.lse \
35   http://home.comcast.net/~dharter46/Pascal.lse \
36   http://home.comcast.net/~dharter46/Perl.lse \
38 md5sums=('45d7d9e167ffafe5880dfd4b526eaa0e' '9132495a4c652d6a3a5ffa5b29c3c14d'\
39          '806f20cf5f67cc33e54e1e6118a1f6d2' '3a19c299ccf897593bf2853d39337dfb'\
40          '07ecd667c5b5205bc92850196ea06429' '9df894e0a908a6d4cf073c9d6c7a0ce3'\
41          'a8085c37fd2032da350515caa044148a' '99332ad967b57f4deb3de2ccbab37093'\
42          '3d4df3855972ca3a89be244a53adadd9' '9341ff86075de7f5d9d43300dfc0b810'\
43          '2053e3d5dd3a2c60a2bcf3f3962fe4fc' '24124995908740fc335b13d6054bda1e'\
44          '65065aa56fb8ffbb58fe8ce228f31e76' '9b0b5c1bdca0ed085d88fec4993c6c49'\
45          'e42cf323339fc0cba1ce1a8c34c4db9b' 'bd9dca9b54c4615cf747c04d012c0118'\
46          '5fd76426db981356ec628e99bb030ba3' '158319ed8675fb22f5ede3f25374cc91'\
47          '0913c21f7580e3f968c83a724268b1bc' 'd91cb79da60553014671c38fbb8e9bf6'\
48          '6471ca39c0225dec9eef0d1a7335edce' '20c2a62baa6003a7b47ed5e1e431f63e'\
49          'b4dfed4cde67b665d90c5cdde6de1cc0' '34927e10b27fe4b6f2e0eb29d4a90d57'\
50          'aeb9af74d465dc5cf731c5a04edddf9a')
51 install=else.install
53 build() {
54   cd $srcdir
55   makeinfo else.texi || return 1
56   pdftex else.texi || return 1
57   pdftex else.texi || return 1
58   pdftex else.texi || return 1
59   install -Dm644 else "$pkgdir"/usr/share/info/else.info || return 1
60   gzip "$pkgdir"/usr/share/info/else.info || return 1
61   install -Dm644 else.pdf \
62     "$pkgdir"/usr/share/doc/$pkgname/$pkgname.pdf || return 1
63   rm else else.texi else.pdf || return 1
64   sed -i 's/string-to-int/string-to-number/g' setnu.el || return 1
65   for _i in *.el
66   do
67     emacs -batch -q -f batch-byte-compile ${_i}
68   done || return 1
69   install -d "$pkgdir"/usr/share/emacs/site-lisp || return 1
70   for _i in *
71   do 
72     install -Dm644 ${_i} "$pkgdir"/usr/share/emacs/site-lisp
73   done || return 1