updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / perl-sepia / PKGBUILD
blobd1c4b1d0d3c714f27b0d47820ae7691ac61d5ce4
1 # Contributor: Justin Davis <jrcd83 at gmail>
2 # Generator  : CPANPLUS::Dist::Arch 0.17
3 pkgname='perl-sepia'
4 pkgver='0.991'
5 pkgrel='3'
6 pkgdesc="Simple Emacs Perl Interface"
7 arch=('i686' 'x86_64')
8 license=('PerlArtistic' 'GPL')
9 options=('!emptydirs')
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'
20 build() {
21   DIST_DIR="${srcdir}/Sepia-0.991"
23   export PERL_MM_USE_DEFAULT=1
24   { cd "$DIST_DIR" &&
25     perl Makefile.PL INSTALLDIRS=vendor &&
26     make &&
27     make test &&
28     make DESTDIR="${pkgdir}" install;
29   } || return 1;
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 \
46       2>/dev/null
48   return 0;