archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / perlbrew / trunk / PKGBUILD
blob84e2be3cd501f28404d6a44107fce7ac7e83a197
1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 pkgname=perlbrew
4 pkgver=0.96
5 pkgrel=2
6 pkgdesc='Manage perl installations in your $HOME'
7 arch=('any')
8 url="https://metacpan.org/release/App-perlbrew"
9 license=('MIT')
10 depends=('perl' 'perl-capture-tiny' 'perl-cpan-perl-releases' 'perl-devel-patchperl'
11          'perl-file-path-tiny' 'perl-local-lib')
12 makedepends=('perl-module-build-tiny')
13 checkdepends=('perl-test-exception' 'perl-test-output' 'perl-test-spec'
14               'perl-path-class' 'perl-io-all')
15 options=('!emptydirs')
16 source=("https://search.cpan.org/CPAN/authors/id/G/GU/GUGOD/App-perlbrew-$pkgver.tar.gz")
17 sha1sums=('b2d09c6bfa2cb2b9275fcae15286d2bb1d98cbc7')
18 sha256sums=('f5dbfad96f5a930b05d52cdc4155d9c0ce854c9fadc24696b661abba2289279a')
20 build() {
21   cd App-perlbrew-$pkgver
22   unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
23   export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
24   perl Build.PL
25   ./Build
28 package() {
29   cd App-perlbrew-$pkgver
30   unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
31   ./Build install --installdirs=vendor --destdir="$pkgdir"
32   install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/perlbrew/LICENSE