diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-07-06 17:10:35 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:25 +0300 |
commit | 49acb0bfbda023fe01837c684327550bbdcebe3f (patch) | |
tree | 70bc87d117277575a8f0d95ad9a3ce2572a7f359 /testing/perl-dancer-plugin-dbic/APKBUILD | |
parent | cd79389468251eb6e93233bfe50f7d440afc2eff (diff) | |
download | aports-49acb0bfbda023fe01837c684327550bbdcebe3f.tar.bz2 aports-49acb0bfbda023fe01837c684327550bbdcebe3f.tar.xz |
testing/perl-dancer-plugin-dbic: new aport
DBIx::Class interface for Dancer applications
http://search.cpan.org/dist/Dancer-Plugin-DBIC/
Diffstat (limited to 'testing/perl-dancer-plugin-dbic/APKBUILD')
-rw-r--r-- | testing/perl-dancer-plugin-dbic/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-dancer-plugin-dbic/APKBUILD b/testing/perl-dancer-plugin-dbic/APKBUILD new file mode 100644 index 0000000000..d4a14490ef --- /dev/null +++ b/testing/perl-dancer-plugin-dbic/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-dancer-plugin-dbic +_pkgreal=Dancer-Plugin-DBIC +pkgver=0.2104 +pkgrel=0 +pkgdesc="DBIx::Class interface for Dancer applications" +url="http://search.cpan.org/dist/Dancer-Plugin-DBIC/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-dancer perl-dbicx-sugar" +cpanmakedepends="" +cpancheckdepends="perl-dbd-sqlite perl-dbix-class perl-test-exception perl-dbi perl-test-requires perl-dancer" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/I/IR/IRONCAMEL/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + 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 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="9a3fea9209aceb018a5d2f804ccfc61b3c073584ea7448a3fe44dba7cdfbbb4136705fc0b27f3db2165357940e92a0fc98c1f959a320fa9fe36326ba70dc1057 Dancer-Plugin-DBIC-0.2104.tar.gz" |