aboutsummaryrefslogblamecommitdiffstats
path: root/testing/perl-class-accessor-grouped/APKBUILD
blob: c3e30ad6d9386ae459ff853b7c3ef476e3954d45 (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-class-accessor-grouped
_pkgreal=Class-Accessor-Grouped
pkgver=0.10014
pkgrel=1
pkgdesc="Lets you build groups of accessors"
url="https://metacpan.org/release/Class-Accessor-Grouped"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-sub-name perl-class-xsaccessor perl-module-runtime"
makedepends="perl-module-install perl-test-exception"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Class-Accessor-Grouped-$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="d69fe27c3a12845bb4d0abe6c73d1a82eaf550821184f0945c3802e3932c7742e04c6f655e550386923c2a005e7f893f44ed950c56e6e80785b5a23e7b3c80b3  Class-Accessor-Grouped-0.10014.tar.gz"