mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Automatically generated by apkbuild-cpan, template 4
 | |
| # Contributor: Celeste <cielesti@protonmail.com>
 | |
| # Maintainer: Celeste <cielesti@protonmail.com>
 | |
| pkgname=perl-database-async
 | |
| #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
 | |
| _pkgreal=Database-Async
 | |
| pkgver=0.019
 | |
| pkgrel=0
 | |
| pkgdesc="Database abstraction layer for IO::Async"
 | |
| url="https://metacpan.org/release/Database-Async/"
 | |
| arch="noarch !armhf !armv7 !x86" # perl-ryu
 | |
| license="GPL-1.0-or-later OR Artistic-1.0-Perl"
 | |
| depends="
 | |
| 	perl perl-class-method-modifiers perl-curry
 | |
| 	perl-future perl-future-asyncawait perl-indirect
 | |
| 	perl-io-async perl-json-maybeutf8 perl-list-utilsby
 | |
| 	perl-log-any perl-path-tiny perl-ryu perl-ryu-async
 | |
| 	perl-syntax-keyword-try perl-template-toolkit
 | |
| 	perl-uri perl-uri-db perl-yaml-libyaml
 | |
| 	"
 | |
| checkdepends="perl-test-checkdeps perl-test-fatal perl-test-refcount"
 | |
| subpackages="$pkgname-doc"
 | |
| source="https://cpan.metacpan.org/authors/id/T/TE/TEAM/Database-Async-$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="
 | |
| 16fe6f0a300ef594ad2edd655fe8b48450caa54d37367d11c479aea391c6c03b45aacf41bc94b3ca039019c4b4aee22e588ec4b412a82a7de0963b0e6d65f2c9  Database-Async-0.019.tar.gz
 | |
| "
 |