aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-sub-name/APKBUILD
blob: 1507fbd6f54680670337f437b4483c18d41b2aac (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      

                                                           

                     
           
        
                        
                                            


                          
                                        
                      

                                       
                                                                                 




                                     
                                                               




                                                                 
                                                               








                                                                           
                                                                                                                                                                   
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-sub-name
_pkgreal=Sub-Name
pkgver=0.26
pkgrel=1
pkgdesc="(re)name a sub"
url="https://metacpan.org/release/Sub-Name/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="  perl-devel-checkbin "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

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

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

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

sha512sums="df032823c340500a0cc5e5f4d88688bbed14344a67a1ded462572aebeb39827563c5f69afbc0af1c5aac483013e7083a8aba2e3e47b805007d006818dadd9b5a  Sub-Name-0.26.tar.gz"