aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-dir-self/APKBUILD
blob: de396aadd45f2e65cb6568ec4cc377327d75a7da (plain) (tree)
1
2
3
4
5
6
7
8
9





                                                         
        
                                                                     
                                            
             

                                               
                          
                                                                                 
 
                                    

           
                       




                                                                 
                                                               



            
                 


           
                                      


                                                                           
                                                                                                                                                                   
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
# Maintainer: Nathan Johnson <nathan@nathanjohnson.info>
pkgname=perl-dir-self
_pkgreal=Dir-Self
pkgver=0.11
pkgrel=3
pkgdesc="a __DIR__ constant for the directory your source file is in"
url="https://metacpan.org/release/Dir-Self/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MA/MAUKE/$_pkgreal-$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
}

check() {
        make test
}

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

sha512sums="c2795149e74c71037fab8c3149e85e11d4ee77dbb54f85d07e49c39504b3ba910a5ded32831adf36915b302abc4ced386dcd51b6dfbaef46e069c803793e8efc  Dir-Self-0.11.tar.gz"