aports/testing/perl-database-async-engine-postgresql/APKBUILD
Celeste 40ea6c48d7 */*: add maintainer variable for aports i maintain
leaving the Maintainer comment there for better visual cues, syntax highlighting, and easy conversion to a Contributor comment

since Contributor comments are not being removed, just treat my Maintainer comments like Contributor ones, as a normal comment
2024-10-16 16:20:45 +00:00

58 lines
1.8 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-database-async-engine-postgresql
pkgver=1.005
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Database-Async-Engine-PostgreSQL
pkgdesc="PostgreSQL support for Database::Async"
url="https://metacpan.org/release/Database-Async-Engine-PostgreSQL/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
perl perl-bytes-random-secure perl-config-tiny
perl-cryptx perl-curry perl-database-async
perl-file-homedir perl-future perl-future-asyncawait
perl-indirect perl-io-async-ssl perl-log-any perl-path-tiny
perl-protocol-database-postgresql perl-ryu perl-ryu-async
perl-syntax-keyword-try perl-template-toolkit
perl-unicode-utf8 perl-uri perl-uri-db
"
checkdepends="
perl-log-any-adapter-tap perl-test-checkdeps perl-test-deep
perl-test-fatal perl-test-mockmodule perl-test-refcount
perl-full
"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TE/TEAM/Database-Async-Engine-PostgreSQL-$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 \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
doc() {
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
amove "${file#"$pkgdir"}"
done
default_doc
}
sha512sums="
453195ee47c89d539598857e5deba21b1263418bd4f124478297e41df8195426ba93d375ae206ea0a2a62b57d25c9dae0f0773488c42ccfe3ba5180102ec0773 Database-Async-Engine-PostgreSQL-1.005.tar.gz
"