mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Automatically generated by apkbuild-cpan, template 4
 | |
| # Contributor: Celeste <cielesti@protonmail.com>
 | |
| # Maintainer: Celeste <cielesti@protonmail.com>
 | |
| pkgname=perl-html-object
 | |
| pkgver=0.5.0
 | |
| pkgrel=0
 | |
| #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
 | |
| _pkgreal=HTML-Object
 | |
| pkgdesc="HTML parser, modifier and query interface"
 | |
| url="https://metacpan.org/release/HTML-Object/"
 | |
| arch="noarch"
 | |
| license="GPL-1.0-or-later OR Artistic-1.0-Perl"
 | |
| depends="
 | |
| 	perl perl-css-object perl-curry perl-data-uuid
 | |
| 	perl-datetime-format-strptime perl-devel-confess
 | |
| 	perl-html-parser perl-html-selector-xpath perl-json
 | |
| 	perl-module-generic perl-promise-me perl-uri perl-want
 | |
| 	"
 | |
| checkdepends="perl-datetime"
 | |
| subpackages="$pkgname-doc"
 | |
| source="https://cpan.metacpan.org/authors/id/J/JD/JDEGUEST/HTML-Object-v$pkgver.tar.gz"
 | |
| builddir="$srcdir/$_pkgreal-v$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="
 | |
| 50d5da8dd3e7aeb55605d8810f0eab04a79f94f5b6915c22f786c9216f47c9f51ec1f3b783843bf9f930965cf87d419fad26e8cb44f7b001cdd9c2fe7b5d93e2  HTML-Object-v0.5.0.tar.gz
 | |
| "
 |