diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-12-24 09:16:44 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-12-24 09:16:44 +0000 |
commit | f3046b4dad6de3ec198f9c5aa4ad50d7b7ebcfa7 (patch) | |
tree | 199f1c41e86d5cbf98ab05144359c28e3ab9cd88 /main/perl-convert-asn1 | |
parent | 8323ccc24b10ccb8df5df548b3993add18628587 (diff) | |
download | aports-f3046b4dad6de3ec198f9c5aa4ad50d7b7ebcfa7.tar.bz2 aports-f3046b4dad6de3ec198f9c5aa4ad50d7b7ebcfa7.tar.xz |
testing/perl-convert-asn1: move to main
Diffstat (limited to 'main/perl-convert-asn1')
-rw-r--r-- | main/perl-convert-asn1/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/main/perl-convert-asn1/APKBUILD b/main/perl-convert-asn1/APKBUILD new file mode 100644 index 0000000000..f8ad56c3c2 --- /dev/null +++ b/main/perl-convert-asn1/APKBUILD @@ -0,0 +1,39 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=perl-convert-asn1 +_pkgreal=Convert-ASN1 +pkgver=0.26 +pkgrel=0 +pkgdesc="Convert between perl data structures and ASN.1 encoded packets" +url="http://search.cpan.org/dist/Convert-ASN1/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/$_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 && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="1c846c8c1125e6a075444abe65d99b63 Convert-ASN1-0.26.tar.gz" |