diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-28 15:20:54 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-29 15:13:11 +0000 |
commit | 0b068dfa40656d71e7ba94f31b8681be1b123306 (patch) | |
tree | 32d5e67e0eff413886cd022248564fedc4f2a891 /main/perl-params-validate/APKBUILD | |
parent | 598cc1b65f161e4b4e2cf044d3885e99cc428928 (diff) | |
download | aports-0b068dfa40656d71e7ba94f31b8681be1b123306.tar.bz2 aports-0b068dfa40656d71e7ba94f31b8681be1b123306.tar.xz |
main/perl-params-validate: fix depends
Diffstat (limited to 'main/perl-params-validate/APKBUILD')
-rw-r--r-- | main/perl-params-validate/APKBUILD | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/main/perl-params-validate/APKBUILD b/main/perl-params-validate/APKBUILD index dbffdb7bdf..7f72dbb7ed 100644 --- a/main/perl-params-validate/APKBUILD +++ b/main/perl-params-validate/APKBUILD @@ -1,39 +1,38 @@ -# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-params-validate +_pkgreal=Params-Validate pkgver=1.06 -pkgrel=0 -pkgdesc="Params-Validate Perl module" +pkgrel=1 +pkgdesc="Validate method/function parameters" url="http://search.cpan.org/dist/Params-Validate/" arch="all" -license="GPL+ or Artistic" -depends="perl" -makedepends="perl-dev" -install="" +license="Artistic-2" +cpandepends="perl-module-implementation" +cpanmakedepends="perl-test-fatal perl-module-implementation " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-Validate-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" -_builddir="$srcdir"/Params-Validate-$pkgver prepare() { - local i cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + perl Build.PL installdirs=vendor || return 1 } build() { cd "$_builddir" - unset CFLAGS - perl Build.PL installdirs=vendor || return 1 - ./Build + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + ./Build && ./Build test } package() { cd "$_builddir" - ./Build install destdir="$pkgdir" create_packlist=0 || return 1 + ./Build install destdir="$pkgdir" || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } md5sums="4f7a281269cd30d7c3994ba5acb50857 Params-Validate-1.06.tar.gz" |