1 # Maintainer: Oleg Smirnov <oleg.smirnov@gmail.com>
2 pkgname=emacs-erlang-mode
5 pkgdesc="Emacs mode for Erlang"
7 url="http://www.erlang.org/"
10 source=(https://github.com/erlang/otp/raw/OTP_R14B/lib/tools/emacs/erlang_appwiz.el
11 https://github.com/erlang/otp/raw/OTP_R14B/lib/tools/emacs/erlang.el
12 https://github.com/erlang/otp/raw/OTP_R14B/lib/tools/emacs/erlang-start.el
13 https://github.com/erlang/otp/raw/OTP_R14B/lib/tools/emacs/erlang-skels.el
14 https://github.com/erlang/otp/raw/OTP_R14B/lib/tools/emacs/erlang-skels-old.el
15 https://github.com/erlang/otp/raw/OTP_R14B/lib/tools/emacs/erlang-flymake.el
16 https://github.com/erlang/otp/raw/OTP_R14B/lib/tools/emacs/erlang-eunit.el
17 electric-newline-spec.patch)
18 md5sums=('e135b919a8168ee581dd305cffd79ef9'
19 'aade9193cc79c5ff24097a9756cf8637'
20 '16470301318d4c11cfc14c42d2926c2e'
21 '99ed67b37bcd1635bf9a5ab0dadbc431'
22 '3662c0a5c787827dfec82b00c076863c'
23 '391c2a2b67bb7ce0ed6441e920410f8c'
24 'f9c9f3f88f7be7b0efe5000f0eb75b7e'
25 'd4a914bef53c0ee0687012c3fd7ce6ef')
26 install=${pkgname}.install
29 mkdir -p "${pkgdir}/usr/share/emacs/site-lisp/"
30 patch -p4 < electric-newline-spec.patch
31 for i in "erlang_appwiz" "erlang" "erlang-eunit" "erlang-flymake" "erlang-skels" \
32 "erlang-skels-old" "erlang-start"; do
33 emacs -batch -f batch-byte-compile "$i.el"
34 install -D -m644 "${srcdir}/$i.elc" "${pkgdir}/usr/share/emacs/site-lisp/$i.elc"
35 install -D -m644 "${srcdir}/$i.el" "${pkgdir}/usr/share/emacs/site-lisp/$i.el"