aboutsummaryrefslogblamecommitdiffstats
path: root/testing/perl-string-crc32/APKBUILD
blob: e8127fd8e6839ad5d80cd2b0a6639ffabf42a230 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                      

            

                                                               

                      

                      
                          
                                                                                    


                                    
                       
 




                                                                 




                                                                
                                      



                                                                           



                                                                

                                                                                                                                                                        
# 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-string-crc32
_pkgreal=String-CRC32
pkgver=2.100
pkgrel=0
pkgdesc="Perl interface for cyclic redundancy check generation"
url="https://metacpan.org/release/String-CRC32"
arch="all"
license="unrestricted"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/L/LE/LEEJO/String-CRC32-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}


sha512sums="24e5f69aa02b16c888fa412afd28f907756e344662d66d05759ed212d97ce3f0a05fbf5bdd1137bc31ae37e27d0778fe23d75def368e051ab1cbc4b90c96907d  String-CRC32-2.100.tar.gz"