updated on Tue Jan 10 16:09:17 UTC 2012
[aur-mirror.git] / perl-b-c / PKGBUILD
blob6f5a999dafe0814f131572d3c4016d86115fb6e7
1 # Contributor: 3ED <krzysztof1987 at gmail dot com>
3 pkgname='perl-b-c'
4 _lastauthor='R/RU/RURBAN'
5 _pkgname='B-C'
6 pkgver='1.36'
7 pkgrel='1'
8 pkgdesc="Perl compiler's C backend"
9 arch=('i686' 'x86_64')
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
12 depends=('perl' 'perl-ipc-run' 'perl-opcodes' 'perl-b-flags' 'perl-time-hires')
13 url='http://search.cpan.org/dist/B-C/'
14 source=(http://search.cpan.org/CPAN/authors/id/${_lastauthor}/${_pkgname}-${pkgver}.tar.gz)
15 sha256sums=('584bb3c74961e77ccf7ff3a754cd03d4529d6746ca2d3a07efb97896eb75b05d')
17 build() {
18   cd "${srcdir}/${_pkgname}-${pkgver}"
19   export PERL_MM_USE_DEFAULT=1
20   export PERL_AUTOINSTALL='--skipdeps'
21   perl Makefile.PL INSTALLDIRS=vendor
22   make
24 check() {
25   cd "${srcdir}/${_pkgname}-${pkgver}"
26   make test
28 package() {
29   cd "${srcdir}/${_pkgname}-${pkgver}"
30   make DESTDIR="${pkgdir}" install
31   find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete