1 # Contributor: Justin Davis <jrcd83 at gmail>
2 # Generator : CPANPLUS::Dist::Arch 0.17
6 pkgdesc="Simple Emacs Perl Interface"
8 license=('PerlArtistic' 'GPL')
10 depends=('perl' 'perl-libwww' 'emacs' 'texinfo')
11 optdepends=('perl-padwalker: Stack/lexical inspection.'
12 'perl-devel-size: Printing variable sizes.'
13 'perl-module-info: Required for some Emacs functions.'
14 'perl-lexical-persistence: Strict mode.')
15 url='http://search.cpan.org/dist/Sepia'
16 source=('http://search.cpan.org/CPAN/authors/id/S/SE/SEANO/Sepia-0.991.tar.gz')
17 md5sums=('d93570e03d89c9783a5e326d802720c4')
18 install='sepia.install'
21 DIST_DIR="${srcdir}/Sepia-0.991"
23 export PERL_MM_USE_DEFAULT=1
25 perl Makefile.PL INSTALLDIRS=vendor &&
28 make DESTDIR="${pkgdir}" install;
31 find "$pkgdir" -name .packlist -delete
32 find "$pkgdir" -name perllocal.pod -delete
34 # Copy info page to package
35 install -D -m 644 "${DIST_DIR}/sepia.info" \
36 "${pkgdir}/usr/share/info/sepia.info"
38 # Copy elisp files to site-lisp directory for emacs
39 ELISPDEST="${pkgdir}/usr/share/emacs/site-lisp/sepia"
40 install -d "$ELISPDEST"
41 find "$DIST_DIR" -maxdepth 1 -name '*.el' \
42 | xargs install -m 644 -t "$ELISPDEST"
44 # Compile emacs lisp files
45 emacs -batch -f batch-byte-compile ${ELISPDEST}/*.el \