updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / sunrise-commander-addons / PKGBUILD
blob0dce51c7adf1fa3b25f676ff365e2b30f6403b42
1 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
2 pkgname=sunrise-commander-addons  
3 pkgver=5r396
4 pkgrel=1
5 pkgdesc="Addons for Sunrise Commander"
6 url="http://www.emacswiki.org/emacs/Sunrise_Commander"
7 arch=('any')
8 license=('GPL')
9 depends=('sunrise-commander')
10 _emacs_major_version=$(emacs --version | head -1|cut -b 11,12)
11 source=(http://www.emacswiki.org/emacs/download/sunrise-x-buttons.el \
12   http://www.emacswiki.org/emacs/download/sunrise-x-mirror.el \
13   http://www.emacswiki.org/emacs/download/sunrise-x-popviewer.el \
14   http://www.emacswiki.org/emacs/download/sunrise-x-loop.el \
15   http://www.emacswiki.org/emacs/download/sunrise-x-modeline.el \
16   http://www.emacswiki.org/emacs/download/sunrise-x-tree.el \
17   http://www.emacswiki.org/emacs/download/sunrise-x-checkpoints.el \
18   http://www.emacswiki.org/emacs/download/sunrise-x-old-checkpoints.el)
19 md5sums=('8df5fa244ed33cdaa8df40785a701b59'
20          '13998f92ac08971d27543695102fe987'
21          '3f197f4d07f4f4f7e382bd0e936254d4'
22          'd7770940d30a08040fe2faab1a852cb5'
23          '4224ea3c0af5da20c2d2eb0cbe4d5efb'
24          'badfd2f2aea047975227c7e8c66b8bb1'
25          '8e2e41ff10e5e5d9cf007a247e46e75d'
26          'd9bc45ad832e3b46d29db57bfa77a8b3')
28 build() {
29   cd "$srcdir"
30   if [ ${_emacs_major_version} == 22 ]; then
31     rm sunrise-x-checkpoints.el
32   else
33     rm sunrise-x-old-checkpoints.el
34   fi
35   for _i in *.el
36   do
37     emacs --batch -q -f batch-byte-compile ${_i}
38   done 
40 package() {
41   install -d $pkgdir/usr/share/emacs/site-lisp
42   cd "$srcdir"
43   for _i in *.el
44   do
45     install ${_i} $pkgdir/usr/share/emacs/site-lisp/${_i}
46     install ${_i}c $pkgdir/usr/share/emacs/site-lisp/${_i}c
47   done