aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-crypt-cbc/APKBUILD
blob: 1f6645b7fa5b7f72cd54b0d058e6f5cd99251106 (plain) (tree)
1
2
3
4
5
6
7
8
                                                      

                                                           


                      

                                                      



                                            
                  




                                                                                 
                                    

           
                      




                                                                 
                      
                                                               





                      


           

                                      


                                                                           
                                                                                                                                                                    
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-crypt-cbc
_pkgreal=Crypt-CBC
pkgver=2.33
pkgrel=1
pkgdesc="Encrypt Data with Cipher Block Chaining Mode"
url="http://search.cpan.org/dist/Crypt-CBC/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/L/LD/LDS/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make
}

check() {
        cd "$builddir"
        make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="5db17905c38b46f496617095655bb48e4737d6813c794f65dce88556f177caee1d5f669ddb0da3ad4b00e11ff1bc0af91fd4cd312ed2fd8497e410ef11176244  Crypt-CBC-2.33.tar.gz"