aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-07-28 14:11:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2021-07-28 15:46:08 +0000
commit2e9e4387f7f16fe767497ca3ecb7f8443a4e3431 (patch)
tree01096cfa723bcf906f0a27f477d28dcf579bf37f
parent8472c3b12349a61603dd226133bf101a2bb19bc5 (diff)
downloadaports-2e9e4387f7f16fe767497ca3ecb7f8443a4e3431.tar.gz
aports-2e9e4387f7f16fe767497ca3ecb7f8443a4e3431.tar.bz2
aports-2e9e4387f7f16fe767497ca3ecb7f8443a4e3431.tar.xz
testing/perl-sql-abstract-classic: new aport
Generate SQL from Perl data structures https://metacpan.org/release/SQL-Abstract-Classic/ needed by perl-dbix-class
-rw-r--r--testing/perl-sql-abstract-classic/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/perl-sql-abstract-classic/APKBUILD b/testing/perl-sql-abstract-classic/APKBUILD
new file mode 100644
index 0000000000..b7da78b89a
--- /dev/null
+++ b/testing/perl-sql-abstract-classic/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 3
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=perl-sql-abstract-classic
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=SQL-Abstract-Classic
+pkgver=1.91
+pkgrel=0
+pkgdesc="Generate SQL from Perl data structures"
+url="https://metacpan.org/release/SQL-Abstract-Classic/"
+arch="noarch"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl perl-sql-abstract perl-mro-compat"
+makedepends="perl-dev perl-test-warn perl-test-exception perl-test-deep"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/R/RI/RIBASUSHI/SQL-Abstract-Classic-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="
+a2389c04889ea09fc6512f955f8a383d1f51839f584a0be16aab33dec72b67214d0f22d55c666fa0ddeaa32e5c6fc91e1e50541d52e71beeb3b3d85af21a9643 SQL-Abstract-Classic-1.91.tar.gz
+"