aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/perl-dbicx-sugar/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-dbicx-sugar/APKBUILD b/testing/perl-dbicx-sugar/APKBUILD
new file mode 100644
index 0000000000..91faf2276a
--- /dev/null
+++ b/testing/perl-dbicx-sugar/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-dbicx-sugar
+_pkgreal=DBICx-Sugar
+pkgver=0.0100
+pkgrel=0
+pkgdesc="Just some syntax sugar for DBIx::Class"
+url="http://search.cpan.org/dist/DBICx-Sugar/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-sql-translator perl-dbix-class"
+cpanmakedepends=""
+cpancheckdepends="perl-dbi perl-dbix-class perl-test-modern perl-test-requires"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends perl-dbd-sqlite"
+checkdepends="$cpancheckdepends perl-moose"
+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 -I. 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="f034da76509a6c80f23739aa8cc7971f738d39c32a0841d68030308fbdc2ba63de08acb4dcd140c8bcd1e951ec52ca2ec7b3dfa0a04c6b0c4a2da1c67a3daac7 DBICx-Sugar-0.0100.tar.gz"