aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-hash-merge-simple/APKBUILD
blob: 4bc9bce170ec9d098595fe9e4d113baf74b452c3 (plain) (tree)
1
2
3
4
5
6
7
8
                                                      
                                                          


                              
        
                                                      
                                                     






                                       
                                                                                
 
                                    

           


                       




                                                                 
                      
                                                               





                      


           

                                      


                                                                           
                                                                                                                                                                             
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-hash-merge-simple
_pkgreal=Hash-Merge-Simple
pkgver=0.051
pkgrel=3
pkgdesc="Recursively merge two or more hashes, simply"
url="https://metacpan.org/release/Hash-Merge-Simple/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-clone"
cpanmakedepends="perl-test-most"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RO/ROKR/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	default_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
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="8db850144593632ce8ac8a560dac6670814a9ce3d1091d6aa42ab0eadca4b350671103b1de906d562aeaa0934fd58bd4e557821c5bcd730a10849f8505f65c4c  Hash-Merge-Simple-0.051.tar.gz"